(varName string)
| 94 | } |
| 95 | |
| 96 | func 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 | |
| 109 | func (m textModel) Init() tea.Cmd { |
| 110 | return tea.Batch(m.textInput.Focus(), textinput.Blink) |
no outgoing calls
no test coverage detected
searching dependent graphs…