Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kuritka/shell-cmd

blocking shell command
https://github.com/kuritka/shell-cmd

Last synced: 24 days ago
JSON representation

blocking shell command

Awesome Lists containing this project

README

        

# shell-cmd
blocking shell command

```golang
cmd := shell.Command{
Command: "terraform",
Args: []string{"plan", "-input=false", "-out=tfplan"},
}
o, _ := shell.Execute(cmd)
fmt.Println(o)
```

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