MCPcopy
hub / github.com/charmbracelet/huh / Run

Function Run

run.go:4–8  ·  view source on GitHub ↗

Run runs a single field by wrapping it within a group and a form.

(field Field)

Source from the content-addressed store, hash-verified

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

Callers 7

RunMethod · 0.85
RunMethod · 0.85
runMethod · 0.85
RunMethod · 0.85
RunMethod · 0.85
RunMethod · 0.85
RunMethod · 0.85

Calls 4

NewGroupFunction · 0.85
NewFormFunction · 0.85
RunMethod · 0.65
WithShowHelpMethod · 0.45

Tested by

no test coverage detected