cli

package
v0.97.3-pre Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2021 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMissingParameter = errors.New("missing argument")
	ErrInvalidParameter = errors.New("can't parse argument")
)

Various errors.

Functions

func Parse added in v0.91.0

func Parse(args []string) (string, error)

Parse converts it's argument to other formats.

Types

type VMCLI

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

VMCLI object for interacting with the VM.

func New

func New() *VMCLI

New returns a new VMCLI object.

func NewWithConfig added in v0.92.0

func NewWithConfig(printLogo bool, onExit func(int), c *readline.Config) *VMCLI

NewWithConfig returns new VMCLI instance using provided config.

func (*VMCLI) Run

func (c *VMCLI) Run() error

Run waits for user input from Stdin and executes the passed command.

Jump to

Keyboard shortcuts

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