mirror of
https://github.com/gogrlx/docs.grlx.dev.git
synced 2026-04-02 03:08:53 -07:00
update cmd descriptions
This commit is contained in:
@@ -2,17 +2,17 @@
|
|||||||
title: grlx.ingredients.cmd
|
title: grlx.ingredients.cmd
|
||||||
description: cmd
|
description: cmd
|
||||||
---
|
---
|
||||||
The cmd ingredient allows for us to run arbitrary shell commands against sprouts.
|
The cmd ingredient allows you to run arbitrary shell commands against sprouts.
|
||||||
## **cmd.run**
|
## **cmd.run**
|
||||||
Runs shell commands against a sprout
|
Runs shell commands against a sprout
|
||||||
#### Parameters
|
#### Parameters
|
||||||
| parameter | type | required | description |
|
| parameter | type | required | description |
|
||||||
|-----------|------|----------|-------------|
|
|-----------|------|----------|-------------|
|
||||||
| _name_ | string | true | the command to run
|
| _name_ | string | true | the command to run
|
||||||
| _runas_ | string | false | user who will run this command
|
| _runas_ | string | false | user who will run this command (defaults to root)
|
||||||
| _path_ | string | false | the path to the binary, this is prepended to the name
|
| _path_ | string | false | the path to the binary, this is prepended to the name
|
||||||
| _cwd_ | string | false | the directory to run this command
|
| _cwd_ | string | false | the directory to run this command
|
||||||
| _env_ | list | false | environmental variables to set like the following: key1=value1
|
| _env_ | list | false | environment variables to set should be specified like key1=value1
|
||||||
| _timeout_ | string | false | set a timeout for the command using [Go Duration](https://pkg.go.dev/time#ParseDuration)
|
| _timeout_ | string | false | set a timeout for the command using [Go Duration](https://pkg.go.dev/time#ParseDuration)
|
||||||
```yaml
|
```yaml
|
||||||
cmd.run:
|
cmd.run:
|
||||||
|
|||||||
Reference in New Issue
Block a user