From 88bbfdfba7d249498b8973fd16f559c657edeea8 Mon Sep 17 00:00:00 2001 From: Trent Mick Date: Mon, 4 Jan 2016 22:57:24 -0800 Subject: [PATCH] clistyle: networks should be hidden, no whoami --- CHANGES.md | 3 ++- lib/cli.js | 1 - lib/do_networks.js | 2 ++ test/integration/cli-subcommands.test.js | 3 ++- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index e9bce9f..7bc5b48 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -2,7 +2,8 @@ ## 4.0.0 (not yet released) -- XXX changes in `triton instance,key,network` +- XXX changes in `triton instance,key,network,account`. + Drops `triton whoami`. Want to keep that? - Add the ability to create a profile copying from an existing profile, via `triton profile create --copy NAME`. diff --git a/lib/cli.js b/lib/cli.js index ea4ff94..7fde823 100644 --- a/lib/cli.js +++ b/lib/cli.js @@ -205,7 +205,6 @@ function CLI() { { group: 'Images, Packages, Networks' }, 'image', 'package', - 'networks', 'network', { group: 'Other Commands' }, 'info', diff --git a/lib/do_networks.js b/lib/do_networks.js index e25e634..5cc7c63 100644 --- a/lib/do_networks.js +++ b/lib/do_networks.js @@ -22,4 +22,6 @@ do_networks.help = [ ' {{name}} networks ...' ].join('\n'); +do_networks.hidden = true; + module.exports = do_networks; diff --git a/test/integration/cli-subcommands.test.js b/test/integration/cli-subcommands.test.js index 34e1f79..26ac03e 100644 --- a/test/integration/cli-subcommands.test.js +++ b/test/integration/cli-subcommands.test.js @@ -28,7 +28,8 @@ var subs = [ ['profile create'], ['profile edit'], ['profile delete', 'profile rm'], - ['account', 'whoami'], + ['account'], + ['account get'], ['services'], ['datacenters'], ['instance', 'inst'],