console

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2017 License: LGPL-3.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Stdin = newTerminalPrompter()

Stdin holds the stdin line reader (also using stdout for printing prompts).

Functions

This section is empty.

Types

type Console

type Console struct {
	// contains filtered or unexported fields
}

Console console handler

func New

func New(neb Neblet) *Console

New new a console obj,config params is need

func (*Console) AutoComplete

func (c *Console) AutoComplete(line string, pos int) (string, []string, string)

AutoComplete console auto complete input

func (*Console) Evaluate

func (c *Console) Evaluate(statement string) error

Evaluate executes code and pretty prints the result

func (*Console) Interactive

func (c *Console) Interactive()

Interactive starts an interactive user session.

func (*Console) Setup

func (c *Console) Setup()

Setup setup console

func (*Console) Stop

func (c *Console) Stop() error

Stop stop js console

type Neblet

type Neblet interface {
	Config() nebletpb.Config
}

Neblet interface breaks cycle import dependency and hides unused services.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL