MCPcopy Index your code
hub / github.com/koding/kite / handlePrompt

Function handlePrompt

handlers.go:129–134  ·  view source on GitHub ↗

handlePrompt asks user a single line input.

(r *Request)

Source from the content-addressed store, hash-verified

127
128// handlePrompt asks user a single line input.
129func handlePrompt(r *Request) (interface{}, error) {
130 fmt.Print(r.Args.One().MustString())
131 var s string
132 _, err := fmt.Scanln(&s)
133 return s, err
134}
135
136// handleGetPass reads a line of input from a terminal without local echo.
137func handleGetPass(r *Request) (interface{}, error) {

Callers

nothing calls this directly

Calls 2

MustStringMethod · 0.80
OneMethod · 0.80

Tested by

no test coverage detected