New creates a new shell with default settings. Uses standard output and default prompt ">> ".
()
| 65 | |
| 66 | // New creates a new shell with default settings. Uses standard output and default prompt ">> ". |
| 67 | func New() *Shell { |
| 68 | return NewWithConfig(&readline.Config{Prompt: defaultPrompt}) |
| 69 | } |
| 70 | |
| 71 | // NewWithConfig creates a new shell with custom readline config. |
| 72 | func NewWithConfig(conf *readline.Config) *Shell { |
nothing calls this directly
no test coverage detected