cli

package
v0.0.0-...-c729bb3 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2019 License: LGPL-3.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttachNode

func AttachNode() (*node.Node, error)

AttachNode - attempt to attach to saved node in current working directory

func NewNode

func NewNode() (*node.Node, error)

NewNode - simple wrapper for initializing a new node

func NewTerminal

func NewTerminal(rpcPort uint, rpcAddress string) error

NewTerminal - attempts to start io handler for term commands

Types

type Terminal

type Terminal struct {
	Variables []Variable
}

Terminal - absctract container holding set of variable with values (runtime only)

func (*Terminal) AddVariable

func (term *Terminal) AddVariable(variableName string, variableData interface{}, variableType string) error

AddVariable - attempt to append specified variable to terminal variable list

func (*Terminal) HandleCommand

func (term *Terminal) HandleCommand(command string)

HandleCommand - attempt to handle specified command

func (*Terminal) QueryType

func (term *Terminal) QueryType(variableType string) (uint, error)

QueryType - attempt to fetch index of variable with matching type

func (*Terminal) ReplaceVariable

func (term *Terminal) ReplaceVariable(variableIndex int, variableData interface{}) error

ReplaceVariable - attempt to replace value at index with specified variable

type Variable

type Variable struct {
	VariableName string      `json:"name"`
	VariableData interface{} `json:"data"`
	VariableType string      `json:"type"`
}

Variable - container holding variable values

Jump to

Keyboard shortcuts

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