Sha256: 0e0541802c3909f454d5e3afa5d9c66d33246fd6663c555163f0630d9cecae81

Contents?: true

Size: 526 Bytes

Versions: 4

Compression:

Stored size: 526 Bytes

Contents

module PDK
  module CLI
    @get_cmd = @base_cmd.define_command do
      name 'get'
      usage 'get [subcommand] [options]'
      summary 'Retrieve information about the PDK or current project.'
      default_subcommand 'help'

      run do |_opts, args, _cmd|
        if args == ['help']
          PDK::CLI.run(['get', '--help'])
          exit 0
        end

        PDK::CLI.run(['get', 'help']) if args.empty?
      end
    end
    @get_cmd.add_command Cri::Command.new_basic_help
  end
end

require 'pdk/cli/get/config'

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pdk-3.4.0 lib/pdk/cli/get.rb
pdk-3.3.0 lib/pdk/cli/get.rb
pdk-3.0.1 lib/pdk/cli/get.rb
pdk-3.0.0 lib/pdk/cli/get.rb