Sha256: ebb84e45fc29a281960bbae050a085bc182d29a5f922cab8140bfd343f5327ed
Contents?: true
Size: 1.34 KB
Versions: 12
Compression:
Stored size: 1.34 KB
Contents
# frozen_string_literal: true require 'thor' require 'thor_nested_subcommand' require_relative '../configurable' require_relative '../exitable' require_relative '../task_defaultable' module Branch module Name module Subcommands class Init < ::Thor include Configurable include Exitable include TaskDefaultable include ThorNestedSubcommand class << self def base_usage 'config init' end end desc 'global', 'Creates and initializes a .branch-name file in the global folder' long_desc <<-LONG_DESC NAME `branch-name config init global` -- will create and initialize a .branch-name file in the "#{Locatable.global_folder}" folder. SYNOPSIS 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' long_desc <<-LONG_DESC NAME `branch-name config init local` -- will create and initialize a .branch-name file in the "#{Locatable.local_folder}" folder. SYNOPSIS branch-name config init local LONG_DESC def local create_local_config_file! end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems