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

Method Value

field_text.go:84–86  ·  view source on GitHub ↗

Value sets the value of the text field.

(value *string)

Source from the content-addressed store, hash-verified

82
83// Value sets the value of the text field.
84func (t *Text) Value(value *string) *Text {
85 return t.Accessor(NewPointerAccessor(value))
86}
87
88// Accessor sets the accessor of the text field.
89func (t *Text) Accessor(accessor Accessor[string]) *Text {

Callers 15

TestFormFunction · 0.45
TestAccessibleFieldsFunction · 0.45
BlurMethod · 0.45
UpdateMethod · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 2

AccessorMethod · 0.95
NewPointerAccessorFunction · 0.85

Tested by 2

TestFormFunction · 0.36
TestAccessibleFieldsFunction · 0.36