Closed jobala closed 3 years ago
@MIchaelMainer I assume your comment below, is to help users get unstack when they run a wrong command.
Let's remove that ... and provide a user friendly message with specific instructions. Something like:
Where does the usage instructions fall short? It shows the commands available under the profile command group.
usage: mg profile [-h] {select-cloud,add-cloud,update-cloud,delete-cloud,select-version,show-profile
The usage instructions part is good. I think we can make a friendlier, more helpful message than mg profile: error: the following arguments are required: _subcommand
. I believe that a CLI experience should be somewhat conversational (I think I picked this up from the CLI guidance doc). That's why I proposed: The mg profile command must be used with a subcommand. Run mg profile -h for information on available subcommands.
Makes sense. The change won't be trivial so I have created #57 to track your suggestion.
Overview
Move commands from the cloud command group to the profile command group. Removes show-current commands from the cloud and graph-version command groups Adds
show-profile
commandDemo
Notes
N/A
Testing Instructions
mg profile -h
to see the list of commandsmg profile show-profile
to see your current profile