Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct {
Cmd string
Opts []string
PSPattern string
IgnoreErrors bool
Timeout time.Duration
}
func MakeCommand ¶
type File ¶
type LineInFile ¶
type LineInFile struct {
// Required
File string // path to the file
Line []string // line(s) to insert
// Optional
Pattern []string // line(s) to replace
Success []string // pattern to check for success (defaults to Line)
Before []string // insert line before this pattern
After []string // insert line after this pattern
Absent bool // ensure line is absent from file
}
LineInFile lets the user insert lines of text into a file.
func (LineInFile) Files ¶ added in v0.3.1
func (lif LineInFile) Files() []string
func (LineInFile) ID ¶
func (lif LineInFile) ID() string
func (LineInFile) Install ¶
func (lif LineInFile) Install() (string, error)
func (LineInFile) Remove ¶
func (lif LineInFile) Remove() (string, error)
Click to show internal directories.
Click to hide internal directories.