vm

package
v0.105.1 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: MIT Imports: 45 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 NewCommands

func NewCommands() []cli.Command

NewCommands returns 'vm' command.

func Parse added in v0.99.4

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

Parse converts it's argument to other formats.

Types

type CLI added in v0.99.4

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

CLI object for interacting with the VM.

func NewWithConfig added in v0.99.4

func NewWithConfig(printLogotype bool, onExit func(int), c *readline.Config, cfg config.Config) (*CLI, error)

NewWithConfig returns new CLI instance using provided config and (optionally) provided node config for state-backed VM.

func (*CLI) Run added in v0.99.4

func (c *CLI) 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