docs: add comments from #1115 to faq and styleguide (#1202)

This commit is contained in:
Pete Davison
2023-06-04 01:30:45 +01:00
committed by GitHub
parent 7a2f8d691c
commit 105756eb27
2 changed files with 72 additions and 3 deletions

View File

@@ -214,3 +214,27 @@ tasks:
```
This is also done automatically when using included Taskfiles.
## Prefer external scripts over complex multi-line commands
```yaml
# bad
version: '3'
tasks:
build:
cmds:
- |
for i in $(seq 1 10); do
echo $i
echo "some other complex logic"
done'
# good
version: '3'
tasks:
build:
cmds:
- ./scripts/my_complex_script.sh
```