Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TerraformCommand ¶
type TerraformCommand struct {
// contains filtered or unexported fields
}
TerraformCommand represents a terraform command a user would type on the command line
func NewTerraformCommand ¶
func NewTerraformCommand(args []string) *TerraformCommand
NewTerraformCommand will initialize a Terraform command based on a slice of arguments that will map to a Terraform command. Example:
[ "terraform", "init", "/path/to/my/config/dir/" ]
func (*TerraformCommand) Run ¶
func (t *TerraformCommand) Run() (int, error)
Run will attempt to run the command and return an exit code that would be how Terraform would have exited.
Click to show internal directories.
Click to hide internal directories.