How would I implement in Cobra a sub-command that would accept extra parameters as is?
I’m trying to implement a command like this
golang+cobra – How to validate individual positional arguments?
I have a fairly straightforward use case …
How to structure sub sub commands with golang cobra?
I’m new to go and cobra, and I’ve been following tutorials/reading on how to structure the files/folders for commands, but I’ve come unstuck when I’ve added a subcommand to my commands, and hoping for a few pointers
golang cobra local flags assignment
okay so I’m getting the hang of cobra.
In order to recognize the parent who is calling the sub-submodule, I have to use pointers, because there is more than one parent (and more than one grandparent).
Print sub sub command options when calling sub commands with the -h flag in go cobra
I have a cobra subcommand that calls sub sub commands like so …