Skip to content

Consider categorizing output of 'help' command #278

@kotfu

Description

@kotfu

Right now the help command just gives you an alphabetical columnar list of commands. It would be nice if there was a way to create groups or categories of commands, so you could have related commands show up together.

Instead of this:

Documented commands (type help <topic>):
========================================
config     expire       load      resources   shell                stop
connect    findleakers  py        restart     shortcuts            threaddump
deploy     help         pyscript  serverinfo  show                 undeploy
edit       history      quit      sessions    sslconnectorciphers  version
exit       license      redeploy  set         start                vminfo
exit_code  list         reload    settings    status               which

It would be nice if you could create something like:

Documented commands (for more info type help <command>)

Connecting
=========================================
connect     which

Application Management
=========================================
list
deploy       redeploy      undeploy
start        restart       stop
sessions     expire        findleakers

Server Information
==========================================
resources         serverinfo      sslconnectorciphers
status            thread dump     vminfo

Settings
==========================================
config       set           show

Other
=============================
edit      help        license
exit      history     load
version

It would be great if you could not only control the sections of the help, but the order and formatting of the commands within each section. Commands not specified for inclusion in a specific section would be featured in a catch all section like Other.

It might also be interesting to have a way to specify a short phrase of help for each command, with some command like help --long to show:

Documented commands (for more info type help <command>)

Connecting
=========================================
connect    connect to a tomcat server
which      show which server you are currently connected to
...

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions