Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
cmd/juju/storage: add "list", tweak "show" #12
Conversation
wallyworld
reviewed
Jan 28, 2015
| +-e, --environment (= "") | ||
| + juju environment to operate in | ||
| +-o, --output (= "") | ||
| + specify an output |
wallyworld
reviewed
Jan 28, 2015
| +func (c *ListCommand) Info() *cmd.Info { | ||
| + return &cmd.Info{ | ||
| + Name: "list", | ||
| + Purpose: "lists storage instance", |
|
LGTM, very nice |
added a commit
that referenced
this pull request
Jan 28, 2015
wallyworld
merged commit 7d700af
into
wallyworld:storage-feature
Jan 28, 2015
pushed a commit
that referenced
this pull request
Sep 9, 2015
pushed a commit
that referenced
this pull request
Oct 19, 2015
pushed a commit
that referenced
this pull request
Oct 22, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
axw commentedJan 28, 2015
This commit introduces "juju storage list" to list
all of the storage instances in the environment.
The default output is a tabular format, similar to
"juju status --format tabular".
The existing "juju storage show" has been tweaked
to output as a map, rather than a slice. This makes
the output more like "juju status". We also translate
tags to IDs (unit/service name, storage ID), as tags
are not intended for users' eyes.
The StorageName value is now computed from the storage
ID. Finally, the "location", "available-size" and
"total-size" fields are omitted if unavailable. To
effect this, we make their types pointers, so they
are nullable.
This commit requires juju/names#38