command

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Command string `json:"command"`

	ModifierSet *ModifierSet `json:"modifiers"`
}

Command - absctract container holding command values

func NewCommand

func NewCommand(command string, modifierSet *ModifierSet) (*Command, error)

NewCommand - attempt to initialize new instance of command struct with specified command, modifiers.

type ModifierSet

type ModifierSet struct {
	Type     string                `json:"type"`
	Value    interface{}           `json:"value"`
	Variable *environment.Variable `json:"variable"`
}

ModifierSet - abstract containers holding specific parameters for a command

func NewModifierSet

func NewModifierSet(modifierType string, modifierValue interface{}, modifierVariable *environment.Variable) *ModifierSet

NewModifierSet - initialize new instance of modifierset struct with modifiers

Jump to

Keyboard shortcuts

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