Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct { // Command is the command to execute. Run string `json:"run,omitempty" hcl:"run"` // WorkDir is the working directory for the command. It overwrites the // working directory of the sheet. WorkDir string `json:"workDir,omitempty" hcl:"workDir,optional"` // ExitCodes is a slice of exit codes that are considered successful. ExitCodes []int `json:"exitCodes,omitempty" hcl:"exitCodes,optional"` }
type Step ¶
type Step struct { // Name is the name of the step. It is used for logging and representative // purposes. Name string `json:"name,omitempty" hcl:"name,label"` // Clean is the data for cleaning a directory. If it is set, the step is a // Clean step. Clean *Clean `json:"clean,omitempty" hcl:"clean,block"` // Command is the data for running a command. If it is set, the step is a // Command step. Command *Command `json:"command,omitempty" hcl:"command,block"` // Copy is the data for copying a file or directory into another location. // If it is set, the step is a Copy step. Copy *Copy `json:"copy,omitempty" hcl:"copy,block"` // Mkdir is the path to the directory to create. If it is set, the step is a // Mkdir step. Mkdir *string `json:"mkdir,omitempty" hcl:"mkdir,optional"` // Remove is th path to the file or directory to remove. If it is set, the // step is a Remove step. Remove *string `json:"remove,omitempty" hcl:"remove,optional"` // Rename is the data for renaming a file or directory. If it is set, the // step is a Rename step. Rename *Rename `json:"rename,omitempty" hcl:"rename,block"` }
Step represents a general step in a configuration file. Only one of the embedded fields can be set.
Click to show internal directories.
Click to hide internal directories.