lib/cloudstack-cli/commands/snapshot.rb in cloudstack-cli-0.15.1 vs lib/cloudstack-cli/commands/snapshot.rb in cloudstack-cli-1.0.0.rc1

- old
+ new

@@ -2,12 +2,15 @@ desc 'list', 'list snapshots' option :account option :project option :domain - option :listall + option :listall, default: true def list + resolve_account + resolve_project + resolve_domain snapshots = client.list_snapshots(options) if snapshots.size < 1 say "No snapshots found." else table = [["Account", "Name", "Volume", "Created", "Type"]] @@ -20,6 +23,6 @@ print_table table say "Total number of snapshots: #{snapshots.size}" end end -end \ No newline at end of file +end