File: run.go

package info (click to toggle)
golang-github-charmbracelet-huh 0.5.2%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 656 kB
  • sloc: makefile: 15
file content (8 lines) | stat: -rw-r--r-- 203 bytes parent folder | download
1
2
3
4
5
6
7
8
package huh

// Run runs a single field by wrapping it within a group and a form.
func Run(field Field) error {
	group := NewGroup(field)
	form := NewForm(group).WithShowHelp(false)
	return form.Run()
}