use cli_ui::prompt::prelude::*;
fn main() {
intro("Set up a new project");
let name = text("What's your name?")
.default("Anya") .placeholder("e.g. Anya") .run()
.or_cancel("Cancelled.");
let stack = select("Pick a stack")
.option("rust", "Rust")
.option("ts", "TypeScript")
.option("py", "Python")
.run()
.or_cancel("Cancelled.");
let init_git = confirm("Initialise git?")
.default(true)
.run()
.or_cancel("Cancelled.");
outro(format!(
"{name} → {} ({} git)",
stack.label,
if init_git { "with" } else { "without" }
));
}