Registry / cli / charmbracelet-huh

charmbracelet-huh

JSON →
library1.0.0gogounverified

Package huh provides components to build terminal-based forms and prompts.

go get github.com/charmbracelet/huh
INSTALL
IMPORT
SIG · CHARMBRACELET-HUH
C
charmbracelet-huh
cligov1.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

huh
github.com/charmbracelet/huh

Creates a simple terminal form to collect user input.

package main import ( "fmt" "github.com/charmbracelet/huh" ) func main() { name := "" form := huh.NewForm( huh.NewGroup( huh.NewInput().Title("Name").Value(&name), ), ) err := form.Run() if err != nil { panic(err) } fmt.Printf("Hello, %s!\n", name) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
38 hits · last 30 days
node
34
OpenAI (training)
1
Resources
charmbracelet-huh — go get charmbracelet-huh · libregistry