Open murtaza-u opened 2 years ago
@murtaza-u Is there a reason you canceled your pull request for this issue? I'm actually using your code in my own bonzai tree.
@murtaza-u Is there a reason you canceled your pull request for this issue? I'm actually using your code in my own bonzai tree.
I no longer use bonzai since it is no longer maintained. I've switched to using urfave/cli, which offers the same composability as bonzai along with a bunch of additional features. I've also migrated my bonzai tree to use urfave/cli. Here is the repo in case someone wants to reference it: https://github.com/murtaza-u/z.
Current behaviour
Expected behaviour
Notice how
help
disappears after the first argumentminikube
is completed. This is becausehelp
is a command(or a sub-command). Let's think of commands as branches, sub-commands as sub-branches and params as leaves. Multiple params(minikube, kubectl, gh) can be passed to a command(z) but only one sub-command can be passed to it(here help). The sub-command will then have it's own sub-branches and leaves.