Sha256: 0090bc2d52a901798d3f22c9df108f5d37f2ffd9255452fd1dd1fda10724deee

Contents?: true

Size: 857 Bytes

Versions: 14

Compression:

Stored size: 857 Bytes

Contents

module Brightbox
  command [:images] do |cmd|
    cmd.desc I18n.t("images.show.desc")
    cmd.arg_name "image-id..."
    cmd.command [:show] do |c|
      c.action do |global_options, _options, args|
        images = Image.find_all_or_warn(args)

        display_options = {
          :vertical => true,
          :fields => %i[
            id
            type
            owner
            created_at
            status
            locked
            arch
            name
            description
            username
            virtual_size
            disk_size
            public
            compatibility_mode
            official
            ancestor_id
            licence_name
            min_ram
          ]
        }

        table_opts = global_options.merge(display_options)

        render_table(images, table_opts)
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

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