Sha256: 08cfc1fac0a95776f22dfc23ffcd3240f3f480d2ce293cfa603ca4209bf3622c

Contents?: true

Size: 376 Bytes

Versions: 16

Compression:

Stored size: 376 Bytes

Contents

module Brightbox
  desc 'List types'
  arg_name '[type-id...]'
  command [:list] do |c|
    c.action do |global_options,options,args|

      if args.empty?
        types = Type.find :all
      else
        types = Type.find_or_call(args) do |id|
          warn "Couldn't find type #{id}"
        end
      end

      render_table(types.sort, global_options)
    end
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
brightbox-cli-0.18.1 lib/brightbox-cli/commands/types-list.rb
brightbox-cli-0.18.0 lib/brightbox-cli/commands/types-list.rb
brightbox-cli-0.17.5 lib/brightbox-cli/commands/types-list.rb
brightbox-cli-0.17.4 lib/brightbox-cli/commands/types-list.rb
brightbox-cli-0.17.3 lib/brightbox-cli/commands/types-list.rb
brightbox-cli-0.17.2 lib/brightbox-cli/commands/types-list.rb
brightbox-cli-0.17.1 lib/brightbox-cli/commands/types-list.rb
brightbox-cli-0.17.0 lib/brightbox-cli/commands/types-list.rb
brightbox-cli-0.16.0 lib/brightbox-cli/commands/types-list.rb
brightbox-cli-0.15.0 lib/brightbox-cli/commands/types-list.rb
brightbox-cli-0.14.1 lib/brightbox-cli/commands/types-list.rb
brightbox-cli-0.14.0 lib/brightbox-cli/commands/types-list.rb
brightbox-cli-0.13.1 lib/brightbox-cli/commands/types-list.rb
bbcloud-0.13.0 lib/bbcloud/commands/types-list.rb
brightbox-cli-0.13.0 lib/brightbox-cli/commands/types-list.rb
bbcloud-0.12.0 lib/bbcloud/commands/types-list.rb