Sha256: 67123adcaa223583dfa64c645fcb525fd8ed228f035d10629c638c29bf88b41d

Contents?: true

Size: 755 Bytes

Versions: 18

Compression:

Stored size: 755 Bytes

Contents

module Brightbox
  command [:images] do |cmd|
    cmd.default_command :list

    cmd.desc I18n.t("images.list.desc")
    cmd.arg_name "[image-id...]"
    cmd.command [:list] do |c|
      c.desc "Show all public images from all accounts"
      c.switch [:a, "show-all"], :negatable => false

      c.desc "Show only images of a given type"
      c.flag %i[t type]

      c.desc "Show only images of a given status"
      c.flag %i[s status]

      c.desc "Show only images for a given account identifier"
      c.flag %i[l account]

      c.action do |global_options, options, args|
        images = Image.find_all_or_warn(args)
        images = Image.filter_images(images, options)
        render_table(images, global_options)
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
brightbox-cli-5.0.0 lib/brightbox-cli/commands/images/list.rb
brightbox-cli-5.0.0.rc2 lib/brightbox-cli/commands/images/list.rb
brightbox-cli-5.0.0.rc1 lib/brightbox-cli/commands/images/list.rb
brightbox-cli-5.0.0.alpha lib/brightbox-cli/commands/images/list.rb
brightbox-cli-4.8.0 lib/brightbox-cli/commands/images/list.rb
brightbox-cli-4.7.0 lib/brightbox-cli/commands/images/list.rb
brightbox-cli-4.6.0 lib/brightbox-cli/commands/images/list.rb
brightbox-cli-4.5.0 lib/brightbox-cli/commands/images/list.rb
brightbox-cli-4.5.0.rc1 lib/brightbox-cli/commands/images/list.rb
brightbox-cli-4.4.0 lib/brightbox-cli/commands/images/list.rb
brightbox-cli-4.3.2 lib/brightbox-cli/commands/images/list.rb
brightbox-cli-4.3.1 lib/brightbox-cli/commands/images/list.rb
brightbox-cli-4.3.0 lib/brightbox-cli/commands/images/list.rb
brightbox-cli-4.2.1 lib/brightbox-cli/commands/images/list.rb
brightbox-cli-4.2.0 lib/brightbox-cli/commands/images/list.rb
brightbox-cli-4.1.0 lib/brightbox-cli/commands/images/list.rb
brightbox-cli-4.0.0 lib/brightbox-cli/commands/images/list.rb
brightbox-cli-4.0.0.rc2 lib/brightbox-cli/commands/images/list.rb