MCPcopy Create free account
hub / github.com/catppuccin/cli / NewExecModel

Function NewExecModel

internal/ui/execInput.go:18–29  ·  view source on GitHub ↗
(p string)

Source from the content-addressed store, hash-verified

16}
17
18func NewExecModel(p string) ExecModel {
19 ti := textinput.New()
20 ti.Placeholder = p
21 ti.Focus()
22 ti.CharLimit = 256
23 ti.Width = 20
24
25 return ExecModel{
26 textInput: ti,
27 err: nil,
28 }
29}
30
31func (m ExecModel) Init() tea.Cmd {
32 return textinput.Blink

Callers 1

UpdateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected