forked from tildetown/town
start on con command
parent
83b9dd8f21
commit
5750265818
|
@ -0,0 +1,30 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/charmbracelet/huh"
|
||||
)
|
||||
|
||||
func _main() error {
|
||||
|
||||
var mode string
|
||||
|
||||
huh.NewSelect[string]().Title("whuddyu wanna doo?").
|
||||
Options(
|
||||
huh.NewOption("Get an info dump"),
|
||||
huh.NewOption("RSVP", "rsvp"),
|
||||
huh.NewOption("Submit a talk proposal or finished work"),
|
||||
).Value(&mode).Run()
|
||||
|
||||
return nil
|
||||
|
||||
}
|
||||
|
||||
func main() {
|
||||
if err := _main(); err != nil {
|
||||
fmt.Fprintf(os.Stderr, ":( failed: %s\n", err.Error())
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue