Sha256: c7643722c4b5abbca62f9efccfa3a3b6fbf2dd18d1ac8e3b82540881a4670736

Contents?: true

Size: 617 Bytes

Versions: 16

Compression:

Stored size: 617 Bytes

Contents

module Eco
  module Common
    class BaseCLI < MetaThor
      CUSTOM_HELP_MAPPINGS = ["?", "help"]
      ALL_HELP_MAPPINGS = Thor::HELP_MAPPINGS + CUSTOM_HELP_MAPPINGS

      class_option :simulate, type: :boolean, aliases: :s, desc: "do not launch updates or rewrite files"
      #class_option :verbosity, type: :numeric, default: 0, desc: "defines the level of verbosity to show feedback"

      class << self
        def start(given_args = ARGV, config = {})
          super(given_args, config)
        end
      end
      
      protected

      no_commands do
      end

    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
eco-helpers-0.8.3 lib/eco/common/base_cli.rb
eco-helpers-0.8.2 lib/eco/common/base_cli.rb
eco-helpers-0.8.1 lib/eco/common/base_cli.rb
eco-helpers-0.7.2 lib/eco/common/base_cli.rb
eco-helpers-0.7.1 lib/eco/common/base_cli.rb
eco-helpers-0.6.17 lib/eco/common/base_cli.rb
eco-helpers-0.6.16 lib/eco/common/base_cli.rb
eco-helpers-0.6.15 lib/eco/common/base_cli.rb
eco-helpers-0.6.13 lib/eco/common/base_cli.rb
eco-helpers-0.6.12 lib/eco/common/base_cli.rb
eco-helpers-0.6.11 lib/eco/common/base_cli.rb
eco-helpers-0.6.9 lib/eco/common/base_cli.rb
eco-helpers-0.6.8 lib/eco/common/base_cli.rb
eco-helpers-0.6.7 lib/eco/common/base_cli.rb
eco-helpers-0.6.6 lib/eco/common/base_cli.rb
eco-helpers-0.6.5 lib/eco/common/base_cli.rb