MCPcopy Index your code
hub / github.com/google/mangle / nextLineWithPrompt

Function nextLineWithPrompt

interpreter/interpreter.go:110–121  ·  view source on GitHub ↗
(prompt string)

Source from the content-addressed store, hash-verified

108}
109
110func nextLineWithPrompt(prompt string) (string, error) {
111 rl, err := readline.New(prompt)
112 if err != nil {
113 return "", err
114 }
115 line, err := rl.Readline()
116 if err != nil {
117 return "", err
118 }
119 readline.AddHistory(line)
120 return strings.TrimSpace(line), nil
121}
122
123func (i *Interpreter) showPredicate(p ast.PredicateSym) {
124 const docStringMargin = 50

Callers 2

nextLineFunction · 0.85
LoopMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected