Flags for Choices #589
johnlindquist
announced in
Docs
Replies: 1 comment 2 replies
-
|
Amazing! This opens up tons of possibilities! 👍 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Flags for Choices
To add an options menu to your choices, you must provide a
flagsobject. If one of the keyboard shortcuts are hit, or the user selects the option, then theflagglobal will have the matching key from your flags set totrue:Using the same script above, In the terminal, you would pass an open flag like so:
Beta Was this translation helpful? Give feedback.
All reactions