io

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProcessor

func NewProcessor(out io.Writer, client mqtt.Client) *processor

func NewShell

func NewShell(prompt, historyFile string,
	macros map[string]config.Macro,
	unsubCompletionClb readline.DynamicCompleteFunc) (instance *shell, err error)

func RemoveDecoratorFromPool added in v1.1.0

func RemoveDecoratorFromPool(decorator string)

Types

type Chain

type Chain struct {
	Commands []Command
	Links    []string
	RawLine  []string
}

func (*Chain) IsAppending

func (c *Chain) IsAppending() bool

func (*Chain) IsLongTerm

func (c *Chain) IsLongTerm() bool

func (*Chain) ToCommand

func (c *Chain) ToCommand(input io.Reader, outputs ...io.Writer) (cmdchain.FinalizedBuilder, func(), error)

type Command

type Command struct {
	Name      string
	Arguments []string
}

Jump to

Keyboard shortcuts

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