Documentation ¶
Index ¶
- Variables
- func Format2Prompt(format string) string
- func LoadScripts(shellEngine func(string) error, langEngine func(string) ([]byte, error)) error
- func OptionParse(_ctx context.Context, sh *shell.Shell, e ScriptEngineForOption) (func(context.Context) error, error)
- func Start(mainHandler func() error) error
- func Title()
- type CmdStreamConsole
- type ScriptEngineForOption
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultHistory *history.Container
View Source
var OptionNorc = false
OptionNorc is true, then rcfiles are not executed.
View Source
var SilentMode = false
View Source
var Version string
Version is to show title display.
Functions ¶
func Format2Prompt ¶
Format2Prompt converts format-string to output-string
func LoadScripts ¶
LoadScripts loads ".nyagos"
func OptionParse ¶
Types ¶
type CmdStreamConsole ¶
type CmdStreamConsole struct { shell.CmdSeeker DoPrompt func(io.Writer) (int, error) History *history.Container Editor *readline.Editor HistPath string }
func NewCmdStreamConsole ¶
func NewCmdStreamConsole(doPrompt func(io.Writer) (int, error)) *CmdStreamConsole
func (*CmdStreamConsole) DisableHistory ¶
func (stream *CmdStreamConsole) DisableHistory(value bool) bool
Click to show internal directories.
Click to hide internal directories.