Update trimming the output documentation

This commit is contained in:
Brady Joslin 2020-08-08 18:01:48 -05:00 committed by GitHub
parent 17aae12db5
commit a8f474af4e
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 %}