Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct { // Description is used as the nodes identifier. Description string // The binary to run. // Defaults to 'bash'. Binary string // Arguments to pass when invoking the binary. // Each argument is templated. // Defaults to ["{{.Custom.script}}"] if .Script is not empty, [] otherwise. Arguments []string // A script to template and pass to .Binary. Script string // Input is passed to the process as stdin line by line. // Each line is templated. // // Useful when executing a binary that expects input (e.g. a password for authenticating). Input []string }
Command executes command lines.
func (Command) Identifier ¶
type CommandOutput ¶
type Dir ¶
type Dir struct { Target string // contains filtered or unexported fields }
func (Dir) AfterNodes ¶
func (Dir) Identifier ¶
type Link ¶
type Link struct { Target string Source string Type LinkType // contains filtered or unexported fields }
func (Link) AfterNodes ¶
func (Link) Identifier ¶
type Log ¶
Log logs the given message on the given logger on the info level. If no logger is given the default slog logger is used.
func (Log) Identifier ¶
type ParentDirs ¶
type ParentDirs struct {
ParentDirs []string
}
func NewParentDirs ¶
func NewParentDirs(path string) *ParentDirs
func (ParentDirs) AfterNodes ¶
func (parent ParentDirs) AfterNodes() []string
Click to show internal directories.
Click to hide internal directories.