MCPcopy Index your code
hub / github.com/abiosoft/ishell / ReadLineWithDefault

Method ReadLineWithDefault

actions.go:90–95  ·  view source on GitHub ↗
(defaultValue string)

Source from the content-addressed store, hash-verified

88}
89
90func (s *shellActionsImpl) ReadLineWithDefault(defaultValue string) string {
91 s.reader.defaultInput = defaultValue
92 line, _ := s.readLine()
93 s.reader.defaultInput = ""
94 return line
95}
96
97func (s *shellActionsImpl) ReadPassword() string {
98 return s.reader.readPassword()

Callers

nothing calls this directly

Calls 1

readLineMethod · 0.45

Tested by

no test coverage detected