Debian Codegraph @

examples/readme/confirm/main.go

raw symbols SCIP
1 package main
2
3 import (
4 "github.com/charmbracelet/huh"
5 )
6
7 func main() {
8 var happy bool
9
10 confirm := huh.NewConfirm().
11 Title("Are you sure? ").
12 Description("Please confirm. ").
13 Affirmative("Yes!").
14 Negative("No.").
15 Value(&happy)
16
17 huh.NewForm(huh.NewGroup(confirm)).Run()
18 }