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

Function NewWithConfig

ishell.go:72–80  ·  view source on GitHub ↗

NewWithConfig creates a new shell with custom readline config.

(conf *readline.Config)

Source from the content-addressed store, hash-verified

70
71// NewWithConfig creates a new shell with custom readline config.
72func NewWithConfig(conf *readline.Config) *Shell {
73 rl, err := readline.NewEx(conf)
74 if err != nil {
75 log.Println("Shell or operating system not supported.")
76 log.Fatal(err)
77 }
78
79 return NewWithReadline(rl)
80}
81
82// NewWithReadline creates a new shell with a custom readline instance.
83func NewWithReadline(rl *readline.Instance) *Shell {

Callers 1

NewFunction · 0.85

Calls 2

NewWithReadlineFunction · 0.85
PrintlnMethod · 0.65

Tested by

no test coverage detected