Skip to content

Instantly share code, notes, and snippets.

@chico
Created February 19, 2022 14:03
Show Gist options
  • Save chico/a8809c1ace8a2b48fb4f8d460fc0e5d2 to your computer and use it in GitHub Desktop.
Save chico/a8809c1ace8a2b48fb4f8d460fc0e5d2 to your computer and use it in GitHub Desktop.
Choices in zx
#!/usr/bin/env zx
const choice = await question("How do you script? ", {
choices: ["zx 💪", "bash 😵"],
});
console.log(`Now scripting in ${choice}`);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment