Sha256: a156387a1dce76ed309a3091b3d6c9e1d0f30f81edadb888a06cf5ac00bbf2ed

Contents?: true

Size: 664 Bytes

Versions: 15

Compression:

Stored size: 664 Bytes

Contents

# frozen_string_literal: true

require "paint"
require "thor"
require "tools"
require "version"

module Icarus
  module Mod
    module CLI
      # The Base CLI class for Icarus Mod Tools. This is inherited by all subcommands.
      class Base < Thor
        class_option :config,
                     aliases: "-C", type: :string, default: File.join(Dir.home, "/.imtconfig.json"),
                     desc: "Path to the config file"

        class_option :version,
                     aliases: "-V", type: :boolean,
                     desc: "Print the version and exit"

        def self.exit_on_failure?
          true
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
Icarus-Mod-Tools-2.1.3 lib/icarus/mod/cli/base.rb
Icarus-Mod-Tools-2.1.2 lib/icarus/mod/cli/base.rb
Icarus-Mod-Tools-2.1.1 lib/icarus/mod/cli/base.rb
Icarus-Mod-Tools-2.1.0 lib/icarus/mod/cli/base.rb
Icarus-Mod-Tools-2.0.4 lib/icarus/mod/cli/base.rb
Icarus-Mod-Tools-2.0.3 lib/icarus/mod/cli/base.rb
Icarus-Mod-Tools-2.0.1 lib/icarus/mod/cli/base.rb
Icarus-Mod-Tools-2.0 lib/icarus/mod/cli/base.rb
Icarus-Mod-Tools-1.9.0 lib/icarus/mod/cli/base.rb
Icarus-Mod-Tools-1.8.2.1 lib/icarus/mod/cli/base.rb
Icarus-Mod-Tools-1.8.2 lib/icarus/mod/cli/base.rb
Icarus-Mod-Tools-1.8.1 lib/icarus/mod/cli/base.rb
Icarus-Mod-Tools-1.8.0 lib/icarus/mod/cli/base.rb
Icarus-Mod-Tools-1.7.1 lib/icarus/mod/cli/base.rb
Icarus-Mod-Tools-1.7.0 lib/icarus/mod/cli/base.rb