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

Different "modes" #75

Closed
LoganDark opened this issue Feb 18, 2019 · 1 comment
Closed

Different "modes" #75

LoganDark opened this issue Feb 18, 2019 · 1 comment

Comments

@LoganDark
Copy link
Contributor

LoganDark commented Feb 18, 2019

Related to #74 and #67


What if you could enter a command that changes the commands you can run? Perhaps instead of multiple GUIs you could use a command to 'switch' Cmdr to another set of commands. For example, enter_admin to switch from user mode to admin mode and exit_admin to switch back to user mode... This is all a concept, of course

@LoganDark LoganDark mentioned this issue Feb 19, 2019
@evaera
Copy link
Owner

evaera commented Feb 19, 2019

I think this would already be possible when #67 is implemented. You could make your own command that updates some global state about what commands are active, and then check that in your hook. If you interrupt those commands from showing up they won't be runnable by the user.

@evaera evaera closed this as completed Feb 19, 2019
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

No branches or pull requests

2 participants