Sha256: 89ae3b29085f045e90ade8426d25f6b90aefbfa2f4108eb0f4eaedb8cddefb98

Contents?: true

Size: 1.66 KB

Versions: 6

Compression:

Stored size: 1.66 KB

Contents

# frozen_string_literal: true

require 'thor'
require_relative '../configurable'
require_relative '../exitable'
require_relative 'nestable'
require_relative '../task_defaultable'

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

        class << self
          def base_usage
            'config delete'
          end
        end

        desc 'all', 'Deletes all config files (local and global) for this gem'
        long_desc <<-LONG_DESC
          NAME
          \x5
          `branch-name config delete all` -- will remove the all .branch-name config files.

          SYNOPSIS
          \x5
          branch-name config delete all
        LONG_DESC
        def all
          delete_global_config_file!
          delete_local_config_file!
        end

        desc 'global', 'Deletes the global config file for this gem'
        long_desc <<-LONG_DESC
          NAME
          \x5
          `branch-name config delete global` -- will remove the global .branch-name config file.

          SYNOPSIS
          \x5
          branch-name config delete global
        LONG_DESC
        def global
          delete_global_config_file!
        end

        desc 'local', 'Deletes the local config file for this gem'
        long_desc <<-LONG_DESC
          NAME
          \x5
          `branch-name config delete local` -- will remove the local .branch-name config file.

          SYNOPSIS
          \x5
          branch-name config delete local
        LONG_DESC
        def local
          delete_local_config_file!
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
branch-name-3.6.0 lib/branch/name/subcommands/delete.rb
branch-name-3.5.1 lib/branch/name/subcommands/delete.rb
branch-name-3.5.0 lib/branch/name/subcommands/delete.rb
branch-name-3.4.0 lib/branch/name/subcommands/delete.rb
branch-name-3.3.0 lib/branch/name/subcommands/delete.rb
branch-name-3.2.2 lib/branch/name/subcommands/delete.rb