mirror of
https://github.com/gogrlx/docs.grlx.dev.git
synced 2026-04-13 16:38:08 -07:00
feat(cmd): added rest of cmd interface
This commit is contained in:
@@ -10,9 +10,19 @@ Runs shell commands against a sprout
|
||||
|-----------|------|----------|-------------|
|
||||
| _name_ | string | true | the command to run
|
||||
| _runas_ | string | false | user who will run this command
|
||||
| _path_ | string | false | the path to the binary, this is prepended to the name
|
||||
| _cwd_ | string | false | the directory to run this command
|
||||
| _env_ | list | false | environmental variables to set like the following: key1=value1
|
||||
| _timeout_ | string | false | set a timeout for the command using [Go Duration](https://pkg.go.dev/time#ParseDuration)
|
||||
```yaml
|
||||
cmd.run:
|
||||
- name: go version
|
||||
- runas: super-cool-user
|
||||
- path: /usr/local/bin
|
||||
- cwd: /tmp
|
||||
- env:
|
||||
- GOOS=linux
|
||||
- GOARCH=arm64
|
||||
- timeout: 10s
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user