MCPcopy Index your code
hub / github.com/TomWright/dasel / newInteractiveInputModel

Function newInteractiveInputModel

internal/cli/interactive_tea_input.go:13–25  ·  view source on GitHub ↗
(sharedData *interactiveSharedData)

Source from the content-addressed store, hash-verified

11}
12
13func newInteractiveInputModel(sharedData *interactiveSharedData) *interactiveInputModel {
14 ti := textarea.New()
15 ti.Placeholder = "Enter a query..."
16 ti.SetValue(sharedData.selector)
17 ti.Focus()
18 ti.SetHeight(5)
19 ti.ShowLineNumbers = false
20
21 return &interactiveInputModel{
22 sharedData: sharedData,
23 inputModel: ti,
24 }
25}
26
27func (m *interactiveInputModel) Init() tea.Cmd {
28 return textarea.Blink

Callers 1

newInteractiveRootModelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected