Sha256: ada0f2743a024d5f9a91272db4128a5756adca2b5f14aebdaa18bd8e0fc1f4d1

Contents?: true

Size: 586 Bytes

Versions: 3

Compression:

Stored size: 586 Bytes

Contents

require 'thor'
require 'npmdc'

module Npmdc
  class Cli < Thor
    default_task :check

    desc 'check', 'Run check'
    method_option :path, desc: 'Path to package.json config'
    method_option :'no-color', desc: 'Disable color', type: :boolean
    method_option :format, desc: "Output format, possible values: #{Npmdc::Formatter::FORMATTERS.keys.join(", ")}"

    def check
      Npmdc::Checker.new(options).call
    end

    map %w[--version -v] => :__print_version
    desc '--version, -v', 'Print gem version'
    def __print_version
      puts Npmdc::VERSION
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
npmdc-0.2.2 lib/npmdc/cli.rb
npmdc-0.2.1 lib/npmdc/cli.rb
npmdc-0.2.0 lib/npmdc/cli.rb