MCPcopy
hub / github.com/abiosoft/ishell / SetPrompt

Method SetPrompt

actions.go:143–146  ·  view source on GitHub ↗
(prompt string)

Source from the content-addressed store, hash-verified

141 return s.multiChoice(options, text, init, true)
142}
143func (s *shellActionsImpl) SetPrompt(prompt string) {
144 s.reader.prompt = prompt
145 s.reader.scanner.SetPrompt(s.reader.rlPrompt())
146}
147
148func (s *shellActionsImpl) SetMultiPrompt(prompt string) {
149 s.reader.multiPrompt = prompt

Callers

nothing calls this directly

Calls 2

rlPromptMethod · 0.80
SetPromptMethod · 0.65

Tested by

no test coverage detected