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

Unavailable commands #182

Open
WesCossick opened this issue Mar 3, 2020 · 0 comments
Open

Unavailable commands #182

WesCossick opened this issue Mar 3, 2020 · 0 comments

Comments

@WesCossick
Copy link
Member

Commands, since their specifications are defined dynamically, should allow for an unavailable: boolean; key. If true, then that command should appear grayed out in the help screen and any attempt to use it should fail.

We could also allow for defining a custom explanation of why the command is unavailable, so the end user knows why they can't use it. It could appear in the help screen and definitely in the error message if they try to use it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant