cli needs beautifcation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyjuju |
Fix Released
|
High
|
Kapil Thangavelu |
Bug Description
The current cli has some ugly output warts, caused by the auto generated output argparse which we need to customize..
for example running ./bin/ensemble gets
./bin/ensemble -h
usage: ensemble [-h] [--verbose] [--log-file LOG_FILE]
...
Ensemble cloud orchestration admin
positional arguments:
{resolved,
add-relation Add a relation between services in Ensemble.
add-unit Add a new service unit.
bootstrap Bootstrap all machine providers in all configured environments.
debug-log Distributed ensemble debug log watching.
debug-hooks Interactively debug a hook remotely on a service unit with screen.
deploy Deploy a formula to Ensemble!
destroy-service Destroy a running service, its units, and break its relations.
open-tunnel Establish a tunnel to the environment.
remove-relation Add a relation between services in Ensemble.
remove-unit Remove a service unit.
resolved The ensemble resolve command
status Output status information about a deployment. This command will report on the runtime state
ssh Launch an ssh shell on the given unit or machine.
shutdown Shutdown machine providers in all configured environments.
terminate-
upgrade-formula Upgrade a service's formula.
optional arguments:
-h, --help show this help message and exit
--verbose, -v Enable verbose logging
--log-file LOG_FILE, -l LOG_FILE
notice the multiple duplication of positional arg specs, also the status command has paragraph description instead of the one liner of all the others.. additionally ensemble subcommand --help should have a more detailed help description with examples.
Related branches
- Gustavo Niemeyer: Approve
-
Diff: 131 lines (+29/-13)5 files modifiedensemble/control/__init__.py (+21/-1)
ensemble/control/debug_hook.py (+1/-1)
ensemble/control/expose.py (+2/-4)
ensemble/control/status.py (+3/-3)
ensemble/control/unexpose.py (+2/-4)
Changed in ensemble: | |
milestone: | none → budapest |
importance: | Undecided → High |
Changed in ensemble: | |
assignee: | nobody → Kapil Thangavelu (hazmat) |
status: | New → In Progress |
Changed in ensemble: | |
milestone: | budapest → dublin |
Changed in ensemble: | |
status: | In Progress → Fix Released |