From 5750265818bf6b3c1423fe98c05e2ca8d6fd1f5e Mon Sep 17 00:00:00 2001 From: nate smith Date: Fri, 30 Aug 2024 20:46:16 -0500 Subject: [PATCH] start on con command --- cmd/con/README.md | 0 cmd/con/main.go | 30 ++++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 cmd/con/README.md create mode 100644 cmd/con/main.go diff --git a/cmd/con/README.md b/cmd/con/README.md new file mode 100644 index 0000000..e69de29 diff --git a/cmd/con/main.go b/cmd/con/main.go new file mode 100644 index 0000000..d577751 --- /dev/null +++ b/cmd/con/main.go @@ -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) + } +}