Sha256: 851e4bd25400ffbaa12ce49871c5aa051ebf85c886edffa8a0f39407d6beb117

Contents?: true

Size: 465 Bytes

Versions: 9

Compression:

Stored size: 465 Bytes

Contents

module Brightbox
  command [:volumes] do |cmd|
    cmd.desc I18n.t("volumes.show.desc")
    cmd.arg_name I18n.t("volumes.args.optional")

    cmd.command [:show] do |c|
      c.action do |global_options, _options, args|
        volumes = Volume.find_all_or_warn(args)

        table_opts = global_options.merge(
          :vertical => true,
          :fields => Volume.detailed_fields
        )
        render_table(volumes, table_opts)
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
brightbox-cli-4.8.0 lib/brightbox-cli/commands/volumes/show.rb
brightbox-cli-4.7.0 lib/brightbox-cli/commands/volumes/show.rb
brightbox-cli-4.6.0 lib/brightbox-cli/commands/volumes/show.rb
brightbox-cli-4.5.0 lib/brightbox-cli/commands/volumes/show.rb
brightbox-cli-4.5.0.rc1 lib/brightbox-cli/commands/volumes/show.rb
brightbox-cli-4.4.0 lib/brightbox-cli/commands/volumes/show.rb
brightbox-cli-4.3.2 lib/brightbox-cli/commands/volumes/show.rb
brightbox-cli-4.3.1 lib/brightbox-cli/commands/volumes/show.rb
brightbox-cli-4.3.0 lib/brightbox-cli/commands/volumes/show.rb