Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCommitFromGit ¶
GetCommitFromGit runs git in order to get the current commit.
func GetComponentFromGit ¶
GetComponentFromGit gets the last part of the git repo name to use as a default component name.
Types ¶
type Failure ¶ added in v0.22.0
type Failure int
Failure represents a non-zero exit status without the need for further output.
type GlobalArgs ¶ added in v0.3.0
type GlobalArgs struct { Command string Component string Commit string NoPullConfig bool NoPullRelease bool NoPullTerraform bool }
GlobalArgs represents the global (non command specific) arguments.
type GlobalState ¶
type GlobalState struct { GlobalArgs *GlobalArgs ConfigFilesFolder string Component string Commit string CodeDir string Manifest *manifest.Manifest InputStream io.Reader OutputStream io.Writer ErrorStream io.Writer DockerClient docker.Iface MonitoringClient *monitoring.DatadogClient }
GlobalState contains common to all commands.
func GetGlobalState ¶
func GetGlobalState(globalArgs *GlobalArgs, repoShouldExist bool) (*GlobalState, error)
GetGlobalState collects info common to every command.
Click to show internal directories.
Click to hide internal directories.