Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/kuritka/shell-cmd
- Owner: kuritka
- Created: 2020-09-10T09:43:57.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-29T10:30:06.000Z (about 4 years ago)
- Last Synced: 2024-10-11T11:21:22.165Z (about 1 month ago)
- Language: Go
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)
```