Documentation ¶
Overview ¶
Package cli provides cli specific functionality.
Index ¶
Constants ¶
View Source
const ( // 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" // ErrRootCfgInvalidDir indicates that a root configuration was found outside root ErrRootCfgInvalidDir errors.Kind = "root config found outside root dir" )
View Source
const ( // ErrRunFailed represents the error when the execution fails, whatever the reason. ErrRunFailed errors.Kind = "execution failed" // ErrRunCanceled represents the error when the execution was canceled. ErrRunCanceled errors.Kind = "execution canceled" // ErrRunCommandNotFound represents the error when the command cannot be found // in the system. ErrRunCommandNotFound errors.Kind = "command not found" )
Variables ¶
This section is empty.
Functions ¶
func Exec ¶
Exec will execute terramate with the provided flags defined on args. Only flags should be on the args slice.
Results will be written on stdout, according to the command flags and errors/warnings written on stderr. Exec will abort the process with a status code different than zero in the case of fatal errors.
Sometimes sub commands may be executed, the provided stdin will be passed to then as the sub process stdin.
Each Exec call is completely isolated from each other (no shared state) as far as the parameters are not shared between the run calls.
Types ¶
Source Files ¶
- checkpoint_mineiros.go
- cli.go
- cli_unix.go
- cloud.go
- cloud_credential_github.go
- cloud_credential_google.go
- cloud_default.go
- cloud_sync_deployment.go
- cloud_sync_drift.go
- cloud_sync_terraform_plan.go
- doc.go
- oidc_audience_terramate.go
- project.go
- run.go
- script_info.go
- script_list.go
- script_run.go
- script_tree.go
Directories ¶
Path | Synopsis |
---|---|
Package cliconfig implements the parser and load of Terramate CLI Configuration files (.terramaterc and terramate.rc).
|
Package cliconfig implements the parser and load of Terramate CLI Configuration files (.terramaterc and terramate.rc). |
Package clitest provides constants and errors kind reused by the cli implementation and the e2e test infrastructure.
|
Package clitest provides constants and errors kind reused by the cli implementation and the e2e test infrastructure. |
Package github implements a client SDK for the Github API.
|
Package github implements a client SDK for the Github API. |
Package out provides output functionality, including verboseness level and normal/error messages support.
|
Package out provides output functionality, including verboseness level and normal/error messages support. |
Click to show internal directories.
Click to hide internal directories.