Versions in this module Expand all Collapse all v1 v1.9.21 Jun 22, 2020 Changes in this version + const DefaultPrompt + const HistoryFile + var Stdin = newTerminalPrompter() + type Config struct + Client *rpc.Client + DataDir string + DocRoot string + Preload []string + Printer io.Writer + Prompt string + Prompter UserPrompter + type Console struct + func New(config Config) (*Console, error) + func (c *Console) AutoCompleteInput(line string, pos int) (string, []string, string) + func (c *Console) Evaluate(statement string) error + func (c *Console) Execute(path string) error + func (c *Console) Interactive() + func (c *Console) Stop(graceful bool) error + func (c *Console) Welcome() + type UserPrompter interface + AppendHistory func(command string) + ClearHistory func() + PromptConfirm func(prompt string) (bool, error) + PromptInput func(prompt string) (string, error) + PromptPassword func(prompt string) (string, error) + SetHistory func(history []string) + SetWordCompleter func(completer WordCompleter) + type WordCompleter func(line string, pos int) (string, []string, string)