MCPcopy Create free account
hub / github.com/ddev/ddev / SetInputScanner

Function SetInputScanner

pkg/util/prompt.go:15–17  ·  view source on GitHub ↗

SetInputScanner allows you to override the default input scanner with your own.

(scanner *bufio.Scanner)

Source from the content-addressed store, hash-verified

13
14// SetInputScanner allows you to override the default input scanner with your own.
15func SetInputScanner(scanner *bufio.Scanner) {
16 inputScanner = scanner
17}
18
19// GetInput reads input from an input buffer and returns the result as a string.
20func GetInput(defaultValue string) string {

Calls

no outgoing calls

Tested by 8

TestConfigCommandFunction · 0.74
TestConfigOverrideActionFunction · 0.74
TestGetInputFunction · 0.74
TestGetQuotedInputFunction · 0.74
TestConfirmToFunction · 0.74