Versions in this module Expand all Collapse all v0 v0.0.0 Aug 1, 2022 Changes in this version + type Cmd struct + Args []string + Bg bool + BgName string + Cmd string + Exp CmdExpect + type CmdExpect int + const Fail + const None + const Pass + const Skip + type Config struct + FS billy.Filesystem + LogLevel string + Logger *zap.SugaredLogger + type File struct + Before bool + BegContent int + Chown string + EndContent int + Mode os.FileMode + Path string + TrimEnd bool + type Node interface + AddComment func(string) + BegLine func() int + Clone func() Node + CloneNodeBase func() NodeBase + Comment func() string + DocLine func() int + EndLine func() int + Name func() string + Script func() *Script + SetBegLine func(int) + SetDocLine func(int) + SetEndLine func(int) + String func() string + type NodeBase struct + func (n *NodeBase) AddComment(c string) + func (n *NodeBase) BegLine() int + func (n *NodeBase) Clone() Node + func (n *NodeBase) CloneNodeBase() NodeBase + func (n *NodeBase) Comment() string + func (n *NodeBase) DocLine() int + func (n *NodeBase) EndLine() int + func (n *NodeBase) Name() string + func (n *NodeBase) Script() *Script + func (n *NodeBase) SetBegLine(i int) + func (n *NodeBase) SetDocLine(i int) + func (n *NodeBase) SetEndLine(i int) + func (n *NodeBase) SetScript(s *Script) + func (n *NodeBase) String() string + type NodeResult struct + type Parser struct + func NewParser(config *Config) *Parser + func (P *Parser) AppendNode(n Node) + func (P *Parser) EOF() bool + func (P *Parser) IncLine() + func (P *Parser) ParseScript(filepath string) (*Script, error) + type Phase struct + func (Ph *Phase) AppendNode(n Node) + type Script struct + Args []string + Content string + Errors []error + Files map[string]*File + Help string + Lines []string + Path string + Phases []*Phase + func (S *Script) AddError(e error) + func (S *Script) AddFile(f *File) + func (S *Script) AddPhase(ph *Phase) + type ScriptError struct + Err error + Message string + Node Node + func NewScriptError(msg string, node Node, err error) *ScriptError + func (e *ScriptError) Error() string