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

Function New

ishell.go:67–69  ·  view source on GitHub ↗

New creates a new shell with default settings. Uses standard output and default prompt ">> ".

()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

NewWithConfigFunction · 0.85

Tested by

no test coverage detected