Skip to content

Using cmdns with cobra init'd app #4

Open
@josegonzalez

Description

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 execute apps:info:

$ go run main.go apps:info
Error: unknown command "apps:info" for "pound"
Run 'pound --help' for usage.
unknown command "apps:info" for "pound"
exit status 1

Any pointers as to how I screwed this up would be great! I tried adding cmdns to both the RootCmd and the appsCmd to no avail :(

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions