1
0
mirror of https://github.com/go-task/task.git synced 2025-08-10 22:42:19 +02:00

Implemented dry run mode

Added a --dry-run flag that compiles and steps through each task, but does not execute them. The commands that would have been run are printed. See #125.
This commit is contained in:
Josh Bebbington
2018-07-29 00:38:52 +01:00
parent 31273cd6ff
commit 1c7ca94d49
4 changed files with 15 additions and 1 deletions

View File

@@ -635,6 +635,11 @@ tasks:
- echo "This will print nothing" > /dev/null
```
## Dry Run Mode
Dry run mode (`--dry-run`) compiles and steps through each task, printing the commands
that would be run without executing them. This is useful for debugging your Taskfiles.
## Output syntax
By default, Task just redirect the STDOUT and STDERR of the running commands