We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
shell:format
1 parent ed59ca6 commit 406fde0Copy full SHA for 406fde0
Taskfile.yml
@@ -284,15 +284,16 @@ tasks:
284
# https://github.com/mvdan/sh#shfmt
285
- shfmt -d .
286
287
+ # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-shell-task/Taskfile.yml
288
shell:format:
- desc: Format shell scripts
289
+ desc: Format shell script files
290
cmds:
291
- |
292
if ! which shfmt &>/dev/null; then
293
echo "shfmt not installed or not in PATH. Please install: https://github.com/mvdan/sh#shfmt"
294
exit 1
295
fi
- - shfmt -l -w .
296
+ - shfmt -w .
297
298
config:check:
299
desc: Lint and check formatting of configuration files
0 commit comments