grammar

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ActionCONNECT  = "CONNECT"
	ActionENV      = "ENV"
	ActionVAR      = "VAR"
	ActionCD       = "CD"
	ActionUPLOAD   = "UPLOAD"
	ActionDOWNLOAD = "DOWNLOAD"
	ActionCOPY     = "COPY"
	ActionMOVE     = "MOVE"
	ActionDELETE   = "DELETE"
	ActionRUN      = "RUN"
	ActionTRY      = "TRY"
)

Variables

Functions

This section is empty.

Types

type NodeCd added in v0.6.0

type NodeCd struct {
	Target     string
	SourceCode string
}

type NodeConnect added in v0.6.0

type NodeConnect struct {
	Host        string
	Port        string
	Username    string
	ConnectType *string
	Password    *string
	SourceCode  string
}

type NodeCopy added in v0.6.0

type NodeCopy struct {
	Source      string
	Destination string
	SourceCode  string
}

type NodeDelete added in v0.6.0

type NodeDelete struct {
	Targets    []string
	SourceCode string
}

type NodeEnv added in v0.6.0

type NodeEnv struct {
	Key        string
	Value      string
	SourceCode string
}

type NodeRun added in v0.7.0

type NodeRun struct {
	Commands        []NodeRunCommand
	SourceCode      string
	ExitWithCommand bool // if command run fail. Whether to exit the process
}

type NodeRunCommand added in v0.9.0

type NodeRunCommand struct {
	Command    []string
	RunInLocal bool
	SourceCode string
}

type NodeUpload added in v0.6.0

type NodeUpload struct {
	SourceFiles    []string
	DestinationDir string
	SourceCode     string
}

type NodeVar added in v0.6.0

type NodeVar struct {
	Key        string
	Literal    *NodeVarLiteral
	Env        *NodeVarEnv
	Command    *NodeVarCommand
	SourceCode string
}

type NodeVarCommand added in v0.6.0

type NodeVarCommand struct {
	Local   bool
	Command []string
}

type NodeVarEnv added in v0.6.0

type NodeVarEnv struct {
	Local bool
	Key   string
}

type NodeVarLiteral added in v0.6.0

type NodeVarLiteral struct {
	Value string
}

type Token

type Token struct {
	Key  string
	Node interface{}
}

func Tokenizer

func Tokenizer(input string) ([]Token, error)

Jump to

Keyboard shortcuts

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