Categorygithub.com/kuritka/shell-cmd
repositorypackage
0.0.2
Repository: https://github.com/kuritka/shell-cmd.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

shell-cmd

blocking shell command

cmd := shell.Command{
	Command: "terraform",
	Args: []string{"plan", "-input=false", "-out=tfplan"},
}
o, _ := shell.Execute(cmd)
fmt.Println(o)
cmdsh := shell.Command{
	Command: "sh",
	Args: []string{"-c", "terraform apply -auto-approve tfplan"},
}
o, _ = shell.Execute(cmdsh)
fmt.Println(o)