start on con command

nate smith 2024-08-30 20:46:16 -05:00
parent 83b9dd8f21
commit 5750265818
2 changed files with 30 additions and 0 deletions

View File

30
cmd/con/main.go 100644
View File

@ -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)
}
}