-
Hi everyone, So I have a question, I want to make a cli tool that has multiple subcommands. Now this is working all fine, but I want to extend it and create a single subcommand called So in short at the moment I have this: command CLITool (main command) but now I want one extra subcommand that will run Install and CreateShortcuts in one go. I keep getting errors that the context is not initialized yet, or the command isn't parsed yet and it will throw an Exception.... If anuone has an idea, I would love to hear it! ps. I know that I can easily make a bash script or an extra command, I'm just really curious to know if this even is possible :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
i would move the logic for running commands out into separate functions, and have |
Beta Was this translation helpful? Give feedback.
i would move the logic for running commands out into separate functions, and have
all
call those, rather than trying to invoke another command'srun
manually.