Skip to content
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

Add a way to hide commands in the help messages #109

Merged
merged 2 commits into from Aug 8, 2020

Conversation

jawher
Copy link
Owner

@jawher jawher commented Aug 8, 2020

app.Command("login", "login to the backend (DEPRECATED: please use auth instead)", func(cmd *cli.Cmd)) {
	cmd.Hidden = true
}

Fixes #99

```go
app.Command("login", "login to the backend (DEPRECATED: please use auth instead)", func(cmd *cli.Cmd)) {
	cmd.Hidden = true
}
```

Fixes #99
@jawher jawher merged commit 4f9d668 into master Aug 8, 2020
@jawher jawher deleted the issue-99-hide-commands branch August 8, 2020 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support to make a command hidden in cli
1 participant