You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to build a standard cli with regualr cli commands like git branch create ... vs git 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?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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