Documentation
¶
Overview ¶
Package run provides the run command.
Index ¶
- Constants
- func CheckOutdatedGeneratedCode(ctx context.Context, e *engine.Engine, sf Safeguards, wd string) error
- func GitFileSafeguards(e *engine.Engine, shouldError bool, sf Safeguards) error
- func GitSafeguardDefaultBranchIsReachable(engine *engine.Engine, safeguards Safeguards) error
- func SelectPlanFile(terraformPlan, tofuPlan string) (planfile, provisioner string)
- type Safeguards
- type Spec
- type StatusFilters
Constants ¶
View Source
const ( // ErrConflictOptions tells if the error is related to conflicting options in the command spec. ErrConflictOptions errors.Kind = "conflicting arguments" // ErrCurrentHeadIsOutOfDate indicates the local HEAD revision is outdated. ErrCurrentHeadIsOutOfDate errors.Kind = "current HEAD is out-of-date with the remote base branch" // ErrOutdatedGenCodeDetected indicates outdated generated code detected. ErrOutdatedGenCodeDetected errors.Kind = "outdated generated code detected" )
Variables ¶
This section is empty.
Functions ¶
func CheckOutdatedGeneratedCode ¶
func CheckOutdatedGeneratedCode(ctx context.Context, e *engine.Engine, sf Safeguards, wd string) error
CheckOutdatedGeneratedCode checks if the generated code is outdated.
func GitFileSafeguards ¶
func GitFileSafeguards(e *engine.Engine, shouldError bool, sf Safeguards) error
GitFileSafeguards checks for untracked and uncommitted files in the repository.
func GitSafeguardDefaultBranchIsReachable ¶
func GitSafeguardDefaultBranchIsReachable(engine *engine.Engine, safeguards Safeguards) error
GitSafeguardDefaultBranchIsReachable checks if the default branch is reachable.
func SelectPlanFile ¶
SelectPlanFile returns the plan file and provisioner to use based on the provided flags.
Types ¶
type Safeguards ¶
type Safeguards struct {
DisableCheckGitUntracked bool
DisableCheckGitUncommitted bool
DisableCheckGitRemote bool
DisableCheckGenerateOutdatedCheck bool
ReEnabled bool
}
Safeguards holds the safeguard options for the run command.
type Spec ¶
type Spec struct {
Engine *engine.Engine
WorkingDir string
Printers printer.Printers
Stdout io.Writer
Stderr io.Writer
Stdin io.Reader
// Behavior control options
Command []string
Quiet bool
DryRun bool
Reverse bool
ScriptRun bool
ContinueOnError bool
Parallel int
NoRecursive bool
SyncDeployment bool
SyncDriftStatus bool
SyncPreview bool
DebugPreviewURL string
TechnologyLayer preview.Layer
TerraformPlanFile string
PlanRenderTimeout time.Duration
TofuPlanFile string
Terragrunt bool
EnableSharing bool
MockOnFail bool
EvalCmd bool
GitFilter engine.GitFilter
StatusFilters StatusFilters
Target string
FromTarget string
Tags []string
NoTags []string
engine.OutputsSharingOptions
Safeguards Safeguards
// contains filtered or unexported fields
}
Spec is the command specification for the run command.
type StatusFilters ¶
StatusFilters holds the status filters for the run command.
Click to show internal directories.
Click to hide internal directories.