Relative Content

Tag Archive for gogo-cobra

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).