CLI: help command output should be more readable

Description

It is starting to shape very nicely.
I think it would help to maybe indent subitems.

E.g.:

coopr (http://localhost:55054)> help
COOPR_HOST=localhost

Available commands:
help: Prints this helper text
connect to <host> as <user> <tenant> [using port <port>] [with ssl <enabled/disabled>]: Connects to a Coopr instance
exit: Exits the cli

delete

  • delete template <name>: Deletes a cluster template

  • delete hardware type <name>: Deletes a hardware type

  • delete image type <name>: Deletes an image type

  • delete provider <name>: Deletes a provider

  • delete service <name>: Deletes a service

get

  • get template <name>: Gets the cluster template

  • get hardware type <name>: Gets the hardware type

  • get image type <name>: Gets the image type

  • get provider <name>: Gets the provider

  • get service <name>: Gets the service

  • get cluster <cluster-id>: Gets the cluster

  • get cluster-config <cluster-id>: Gets the cluster config

  • get cluster-status <cluster-id>: Gets the cluster status

list

  • list templates: Lists all cluster templates

  • list hardware types: Lists all cluster hardware types

  • list image types: Lists all image types

  • list providers: Lists all providers

  • list services: Lists all services

  • list clusters: Lists all clusters

  • list services <cluster-id>: Lists all cluster services

[...]

Release Notes

None

Activity

Show:

Alvin Wang January 8, 2015 at 12:06 AM

Taras Yatskiv January 6, 2015 at 3:00 PM

, I have created PRs https://github.com/caskdata/coopr/pull/878 and https://github.com/caskdata/common/pull/22 regarding your comment, please take a look.

Taras Yatskiv January 5, 2015 at 8:44 PM

Thanks, John!
Yep, I just diff this version with old one and it really helps to implement changes regarding your suggestions.

John Jackson January 5, 2015 at 7:57 PM

Here's some revised copy and commands. It would be best to diff this against the old to see the changes made. Some of the longer lines do not look very good when they wrap; perhaps those should be broken onto two lines? Pick a line length (80?) and properly format everything at that...:

John Jackson January 5, 2015 at 7:47 PM

Done. Please see the comment I added to the PR.

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Labels

Components

Sprint

Priority

Created November 13, 2014 at 8:04 PM
Updated March 6, 2015 at 11:30 PM
Resolved January 8, 2015 at 12:45 AM