-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using cmdns with cobra init'd app #4
Comments
Tracked it down to this change ... spf13/cobra#390 |
@kraman thanks for looking into this! I wouldn't know where to begin with "un-caching" the name. Maybe cobra should just support this subcommand method by default? |
Only place |
Looking a little further, I think the issue is that when the command is copied here https://github.com/gosuri/cmdns/blob/master/cmdns.go#L112, it also copies the cached name. If you only copy the public members, then it would work fine. |
The same issue maybe related to #2 as well |
Hi guys, FYI spf13/cobra#547. |
I tried adding cmdns as displayed here in an app that was created via
cobra init
, but can't get the subcommands to work properly. Here is the output I get when trying to executeapps:info
:Any pointers as to how I screwed this up would be great! I tried adding cmdns to both the
RootCmd
and theappsCmd
to no avail :(The text was updated successfully, but these errors were encountered: