Replies: 2 comments 2 replies
-
You mean when you do 'jbang app install cuz.java' we setup auto completion into the shell environment? We would need some kind of convention to know when to do that as Jbang technically don't know your jar is a picocli utility. I guess Iff you have picocli in your dependency set we could run that autocomplete to generate the completion script and add as part of jbang shell setup. Is that What you were thinking about ? |
Beta Was this translation helpful? Give feedback.
-
This is somewhat similar to this issue #788 |
Beta Was this translation helpful? Give feedback.
-
For a given script, why isn't jbang doing the picocli AutoComplete call at build time any time it can be done?
Take the cli template and replace the greeting annotation with this:
Using myScript -h works perfectly, no problem. I'm getting the help page.
But when I run myScript I'd like to see my command line options (here -n --name)
In order to do this, I have to:
then
source myScript_completion (generated by the previous command)
and then I'm happy.
Maybe I'm missing something obvious but seems to me that would just be
awesome to have this handled by jbang itself.
Beta Was this translation helpful? Give feedback.
All reactions