MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / newTextInputStep

Function newTextInputStep

internal/cli/text_input_step.go:25–33  ·  view source on GitHub ↗

newTextInputStep constructs a textInputStep. placeholder is the default value shown/returned when value is empty (used for update mode pre-population).

(title, prompt, placeholder string, required bool, hint string)

Source from the content-addressed store, hash-verified

23// newTextInputStep constructs a textInputStep. placeholder is the default
24// value shown/returned when value is empty (used for update mode pre-population).
25func newTextInputStep(title, prompt, placeholder string, required bool, hint string) textInputStep {
26 return textInputStep{
27 title: title,
28 prompt: prompt,
29 placeholder: placeholder,
30 required: required,
31 hint: hint,
32 }
33}
34
35// update processes a key event and returns the action the wrapping model
36// should take. Same contract as pickerStep.update.

Calls

no outgoing calls