grouping of commands in help ?

14 views
Skip to first unread message

mand...@redhat.com

unread,
Aug 30, 2020, 3:45:23 AM8/30/20
to picocli
Hi,

 I looked in the docs but I didn't find a way to group commands in the help similar to what kubectl does:

Settings Commands:
  label          Update the labels on a resource
  annotate       Update the annotations on a resource
  completion     Output shell completion code for the specified shell (bash or zsh)

Other Commands:
  api-resources  Print the supported API resources on the server
  api-versions   Print the supported API versions on the server, in the form of "group/version"
  config         Modify kubeconfig files
  plugin         Provides utilities for interacting with plugins.
  version        Print the client and server version information

Is there a way I haven't spotted? 

Remko Popma

unread,
Aug 30, 2020, 6:53:08 AM8/30/20
to picocli

mand...@redhat.com

unread,
Aug 30, 2020, 4:25:27 PM8/30/20
to picocli
Excellent will give it a try.

btw. with jbang 0.42 you can now run that demo directly without it adapting jbang syntax:


Just realized that little usecase now so thought I would share ;)

Remko Popma

unread,
Aug 30, 2020, 8:30:30 PM8/30/20
to picocli
I just saw that on Twitter when I woke up.
 
Pretty neat!! :-)
jbang is getting better and better!

Reply all
Reply to author
Forward
0 new messages