How to build a dual CLI/Interactive Menu #1610
Unanswered
gtapia-cuscal
asked this question in
Q&A
Replies: 1 comment
-
Interestingly, an issue has been recently raised for just this, see: #1654 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to build a standard cli with regualr cli commands like
git branch create ...
vsgit
to bring up an interactive menu. To do this I am finding that I have to hack the DI, create a redundat tree structure, etc. Is there any example or best practices to do this?So if you have a complete command argument list, then use the standard CLI to execute the command. If just the root executable command (
git
) is run then revert to an interactive menu. I want the interactive menu to leverage the infrastructure (branches, commands, settings, etc) that has been configured for the regular cli.Obviously, the interactive menu will have additional methods to build up the
Settings
object by promtpting for input, etc. Any ideas?Beta Was this translation helpful? Give feedback.
All reactions