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 like the idea of BINARY VERB NOUN ....aka.... BINARY COMMAND ARG [FLAGS]...But in my case ARGs have discrete flags. So I have opted for BINARY COMMAND SUBCOMMAND [FLAGS] which does work fine, but I was wondering if there was a clean way within the cobra framework to set flags for an ARG.
The text was updated successfully, but these errors were encountered:
Also, valid args are not listed in the help. I think there is an issue for this already. This might be what keeps me using sub-commands.
michaelajr
changed the title
Looking for guidance for CMD VERB NOUN where FLAGS can change based on NOUN
Looking for guidance for BINARY VERB NOUN [FLAGS] where [FLAGS] change based on NOUN
Mar 14, 2024
I like the idea of
BINARY VERB NOUN
....aka....BINARY COMMAND ARG [FLAGS]
...But in my caseARGs
have discrete flags. So I have opted forBINARY COMMAND SUBCOMMAND [FLAGS]
which does work fine, but I was wondering if there was a clean way within the cobra framework to set flags for an ARG.The text was updated successfully, but these errors were encountered: