Merge pull request #402 from bradyjoslin/patch-5

Update trimming the output documentation
This commit is contained in:
Federico Terzi 2020-08-10 20:50:40 +02:00 committed by GitHub
commit 6bc3490c43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -405,8 +405,8 @@ This extension also supports bash **pipes** as your shell, such as:
#### Trimming the output
When working with commands, it's very common to have outputs that also spawn a newline at the end. If you want to remove any
excess spaces/newlines, you can use the `trim` option:
It's very common for commands to have outputs that also spawn a newline at the end. By default a trim option is enabled to remove any
excess spaces/newlines. You can optionally disable the `trim` option:
{% raw %}
```yml
@ -417,7 +417,7 @@ excess spaces/newlines, you can use the `trim` option:
type: shell
params:
cmd: "ip a | grep 'inet 192' | awk '{ print $2 }'"
trim: true
trim: false
```
{% endraw %}