joyent/node-triton#73 `triton instance list --credentials` to include "metadata.credentials" in instance listing

This commit is contained in:
Trent Mick 2016-01-14 09:21:17 -08:00
parent 09954b3f55
commit 01dc55e93f
2 changed files with 13 additions and 0 deletions

View File

@ -2,6 +2,9 @@
## 4.1.0 (not yet released)
- [joyent/node-triton#73] `triton instance list --credentials` to include
"metadata.credentials" in instance listing.
- node-triton#35 More easily distinguish KVM and LX and Docker images and
instances.

View File

@ -65,6 +65,9 @@ function do_list(subcmd, opts, args, callback) {
callback(e);
return;
}
if (opts.credentials) {
listOpts.credentials = true;
}
var imgs;
@ -143,6 +146,13 @@ do_list.options = [
names: ['help', 'h'],
type: 'bool',
help: 'Show this help.'
},
{
names: ['credentials'],
type: 'bool',
help: 'Include generated credentials, in the "metadata.credentials" ' +
'keys, if any. Typically used with "-j", though one can show ' +
'values with "-o metadata.credentials".'
}
].concat(common.getCliTableOptions({
includeLong: true,