MCPcopy Create free account
hub / github.com/donatj/sqlread / NewReadlineWrap

Function NewReadlineWrap

cmd/sqlread/readlinewrap.go:18–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16}
17
18func NewReadlineWrap() *ReadlineWrap {
19 rl, err := readline.NewEx(&readline.Config{
20 Prompt: "> ",
21
22 DisableAutoSaveHistory: true,
23 })
24 if err != nil {
25 panic(err)
26 }
27
28 return &ReadlineWrap{
29 rl: rl,
30 data: []byte{},
31 }
32}
33
34func (s *ReadlineWrap) ReadAt(b []byte, off int64) (int, error) {
35 e := off + int64(len(b)) - 1

Callers 1

interactiveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected