Created
August 10, 2022 03:00
-
-
Save johnlindquist/890fd9a53104debe40365f4a2c928a5a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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