MCPcopy Index your code
hub / github.com/go-task/task / newTextModel

Function newTextModel

internal/input/input.go:96–107  ·  view source on GitHub ↗
(varName string)

Source from the content-addressed store, hash-verified

94}
95
96func newTextModel(varName string) textModel {
97 ti := textinput.New()
98 ti.Placeholder = ""
99 ti.CharLimit = 256
100 ti.SetWidth(40)
101 ti.Focus()
102
103 return textModel{
104 varName: varName,
105 textInput: ti,
106 }
107}
108
109func (m textModel) Init() tea.Cmd {
110 return tea.Batch(m.textInput.Focus(), textinput.Blink)

Callers 1

TextMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…