Sha256: f099ceb356035ed36424915b45cacaaef4f80885722c8aa274a00a3ddeccf4b8
Contents?: true
Size: 327 Bytes
Versions: 3
Compression:
Stored size: 327 Bytes
Contents
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
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bbcloud-0.11.2 | lib/bbcloud/commands/types-list.rb |
bbcloud-0.11.1 | lib/bbcloud/commands/types-list.rb |
bbcloud-0.11.0 | lib/bbcloud/commands/types-list.rb |