shell

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Tablify

func Tablify(in []string, w int) string

Tablify in to w words per line and output tab-delimited.

Types

type Shell

type Shell struct {
	*liner.State
	// contains filtered or unexported fields
}

Shell for interactive management.

func New

func New() (*Shell, error)

New creates an interactive shell structure and loads the configuration.

func (*Shell) Close

func (sh *Shell) Close()

Close the database and do any other cleanup required.

func (*Shell) LoadHistory

func (sh *Shell) LoadHistory()

LoadHistory from file.

func (*Shell) Run

func (sh *Shell) Run() error

Run the shell until exited or some fatal error happens.

func (*Shell) SaveHistory

func (sh *Shell) SaveHistory()

SaveHistory to file.

func (*Shell) Setup

func (sh *Shell) Setup() error

Jump to

Keyboard shortcuts

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