NewWithConfig creates a new shell with custom readline config.
(conf *readline.Config)
| 70 | |
| 71 | // NewWithConfig creates a new shell with custom readline config. |
| 72 | func 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. |
| 83 | func NewWithReadline(rl *readline.Instance) *Shell { |
no test coverage detected