Sha256: e765f997e4cff194bbf3a8ef2afba1adc0e0575bbee600614e49f937f00a1dfc
Contents?: true
Size: 1.6 KB
Versions: 1
Compression:
Stored size: 1.6 KB
Contents
# frozen_string_literal: true require 'thor' require_relative '../configurable' require_relative '../exitable' require_relative 'help_nestable' require_relative 'nestable' require_relative '../task_defaultable' module Branch module Name module Subcommands class Init < ::Thor include Configurable include Exitable include Nestable include TaskDefaultable class << self def ancestor_name 'config init' end end # NOTE: This must be included AFTER defining .ancestor_name include HelpNestable desc 'global', 'Creates and initializes a .branch-name file in the global folder' help_override "#{ancestor_name} global" long_desc <<-LONG_DESC NAME \x5 `branch-name config init global` -- will create and initialize a .branch-name file in the "#{Locatable.global_folder}" folder. SYNOPSIS \x5 branch-name config init global LONG_DESC def global create_global_config_file! end desc 'local', 'Creates and initializes a .branch-name file in the local folder' help_override "#{ancestor_name} local" long_desc <<-LONG_DESC NAME \x5 `branch-name config init local` -- will create and initialize a .branch-name file in the "#{Locatable.local_folder}" folder. SYNOPSIS \x5 branch-name config init local LONG_DESC def local create_local_config_file! end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
branch-name-3.2.1 | lib/branch/name/subcommands/init.rb |