Skip to content

Instantly share code, notes, and snippets.

@johnlindquist
Created August 10, 2022 03:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnlindquist/890fd9a53104debe40365f4a2c928a5a to your computer and use it in GitHub Desktop.
Save johnlindquist/890fd9a53104debe40365f4a2c928a5a to your computer and use it in GitHub Desktop.
// Name: Testing Status
import "@johnlindquist/kit"
while (true) {
await arg({
placeholder: "Set status",
onChoiceFocus: (_, { focused }) => {
let status = focused.value
setStatus({
status,
message: `${status} message...`
})
}
}, [
"default",
"success",
"warn",
"busy",
"error",
"paused"
])
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment