{"action":"created","issue":{"url":"https://api.github.com/repos/spf13/cobra/issues/143","labels_url":"https://api.github.com/repos/spf13/cobra/issues/143/labels{/name}","comments_url":"https://api.github.com/repos/spf13/cobra/issues/143/comments","events_url":"https://api.github.com/repos/spf13/cobra/issues/143/events","html_url":"https://github.com/spf13/cobra/pull/143","id":104971789,"number":143,"title":"Feature/hidden commands","user":{"login":"sdomino","id":28181,"avatar_url":"https://avatars.githubusercontent.com/u/28181?v=3","gravatar_id":"","url":"https://api.github.com/users/sdomino","html_url":"https://github.com/sdomino","followers_url":"https://api.github.com/users/sdomino/followers","following_url":"https://api.github.com/users/sdomino/following{/other_user}","gists_url":"https://api.github.com/users/sdomino/gists{/gist_id}","starred_url":"https://api.github.com/users/sdomino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdomino/subscriptions","organizations_url":"https://api.github.com/users/sdomino/orgs","repos_url":"https://api.github.com/users/sdomino/repos","events_url":"https://api.github.com/users/sdomino/events{/privacy}","received_events_url":"https://api.github.com/users/sdomino/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-04T21:17:12Z","updated_at":"2015-09-06T21:31:46Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/spf13/cobra/pulls/143","html_url":"https://github.com/spf13/cobra/pull/143","diff_url":"https://github.com/spf13/cobra/pull/143.diff","patch_url":"https://github.com/spf13/cobra/pull/143.patch"},"body":"It would be nice if there was a quick way to designate a command as \"for internal use only\" (hidden/private) so that consumers would never see the command but cobra could still run it as any other command.\r\n\r\nThis implementation is very simple and similar in design to the \"deprecated\" field."},"comment":{"url":"https://api.github.com/repos/spf13/cobra/issues/comments/138127593","html_url":"https://github.com/spf13/cobra/pull/143#issuecomment-138127593","issue_url":"https://api.github.com/repos/spf13/cobra/issues/143","id":138127593,"user":{"login":"eparis","id":8093535,"avatar_url":"https://avatars.githubusercontent.com/u/8093535?v=3","gravatar_id":"","url":"https://api.github.com/users/eparis","html_url":"https://github.com/eparis","followers_url":"https://api.github.com/users/eparis/followers","following_url":"https://api.github.com/users/eparis/following{/other_user}","gists_url":"https://api.github.com/users/eparis/gists{/gist_id}","starred_url":"https://api.github.com/users/eparis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eparis/subscriptions","organizations_url":"https://api.github.com/users/eparis/orgs","repos_url":"https://api.github.com/users/eparis/repos","events_url":"https://api.github.com/users/eparis/events{/privacy}","received_events_url":"https://api.github.com/users/eparis/received_events","type":"User","site_admin":false},"created_at":"2015-09-06T21:31:46Z","updated_at":"2015-09-06T21:31:46Z","body":"Personally I like `hidden` rather than `private`, but that's bikeshedding, I know.\r\n\r\nYou need to update `HasNonHelpSubCommands` (maybe rename that func?) So that it won't print `Available Commands` if you only have a single subcommand which is a private command? (Basically everywhere we check `deprecated` you want to do the same thing)\r\n\r\nAlso add some _test.go so we know that private/hidden commands work, but aren't showing up in any of the doc types?"}}