terraform-provider-gitea/vendor/github.com/hashicorp/terraform-exec/tfexec/workspace_select.go

11 lines
345 B
Go
Raw Normal View History

2022-04-03 04:07:16 +00:00
package tfexec
import "context"
// WorkspaceSelect represents the workspace select subcommand to the Terraform CLI.
func (tf *Terraform) WorkspaceSelect(ctx context.Context, workspace string) error {
// TODO: [DIR] param option
return tf.runTerraformCmd(ctx, tf.buildTerraformCmd(ctx, nil, "workspace", "select", "-no-color", workspace))
}