Sha256: a7db5116453f22d0b5e5fd24df22a5ca80ccbbf89e37857286e94dba47acb202

Contents?: true

Size: 626 Bytes

Versions: 1

Compression:

Stored size: 626 Bytes

Contents

require 'cri'

class Kriterion
  class CLI
    def self.command
      @cmd ||= Cri::Command.define do
        name        'kriterion'
        usage       'kriterion <subcommand>'
        summary     'Exposes Puppet\'s compliance information in a REST API'

        flag   :h,  :help,  'show help for this command' do |value, cmd|
          puts cmd.help
          exit 0
        end

        flag :d,  :debug, 'Enable debug logging'
        flag nil, :trace, 'Print stacktraces'

        run do |opts, args, cmd|
          puts cmd.help
          exit 0
        end
      end
    end
  end
end

require 'kriterion/cli/worker'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kriterion-0.0.1 lib/kriterion/cli.rb