Sha256: 0f43b4b4530b39d383a2d8c6b158eec0021281c28a030ffcf17ced8e99e66b07

Contents?: true

Size: 1.07 KB

Versions: 11

Compression:

Stored size: 1.07 KB

Contents

# frozen_string_literal: true

require 'thor'
require_relative '../configurable'
require_relative '../exitable'
require_relative 'delete'
require_relative 'init'
require_relative '../task_defaultable'

module Branch
  module Name
    module Subcommands
      class Config < ::Thor
        include Configurable
        include Exitable
        include TaskDefaultable

        desc 'info', 'Displays information about this gem configuration'
        long_desc <<-LONG_DESC
          NAME
          \x5
          `branch-name config info` -- Displays information about this gem configuration.

          SYNOPSIS
          \x5
          branch-name config info
        LONG_DESC
        def info
          print_global_config_file
          say ''
          print_local_config_file
        end

        desc 'init SUBCOMMAND', 'Sets up config files for this gem'
        subcommand :init, Branch::Name::Subcommands::Init

        desc 'delete SUBCOMMAND', 'Deletes one of all config files for this gem'
        subcommand :delete, Branch::Name::Subcommands::Delete
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
branch-name-3.10.2 lib/branch/name/subcommands/config.rb
branch-name-3.10.1 lib/branch/name/subcommands/config.rb
branch-name-3.10.0 lib/branch/name/subcommands/config.rb
branch-name-3.9.0 lib/branch/name/subcommands/config.rb
branch-name-3.8.0 lib/branch/name/subcommands/config.rb
branch-name-3.7.0 lib/branch/name/subcommands/config.rb
branch-name-3.6.0 lib/branch/name/subcommands/config.rb
branch-name-3.5.1 lib/branch/name/subcommands/config.rb
branch-name-3.5.0 lib/branch/name/subcommands/config.rb
branch-name-3.4.0 lib/branch/name/subcommands/config.rb
branch-name-3.3.0 lib/branch/name/subcommands/config.rb