1
0
mirror of https://github.com/go-task/task.git synced 2025-02-03 13:22:11 +02:00

Changed --dry-run flag to --dry

This commit is contained in:
Josh Bebbington 2018-07-29 22:03:22 +01:00
parent 1c7ca94d49
commit 3f7e8c88eb
3 changed files with 4 additions and 4 deletions

View File

@ -637,7 +637,7 @@ tasks:
## Dry Run Mode
Dry run mode (`--dry-run`) compiles and steps through each task, printing the commands
Dry run mode (`--dry`) 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

View File

@ -17,7 +17,7 @@ var (
version = "master"
)
const usage = `Usage: task [-ilfwvsd] [--init] [--list] [--force] [--watch] [--verbose] [--silent] [--dir] [--dry-run] [task...]
const usage = `Usage: task [-ilfwvsd] [--init] [--list] [--force] [--watch] [--verbose] [--silent] [--dir] [--dry] [task...]
Runs the specified task(s). Falls back to the "default" task if no task name
was specified, or lists all tasks if an unknown task name was specified.
@ -67,7 +67,7 @@ func main() {
pflag.BoolVarP(&watch, "watch", "w", false, "enables watch of the given task")
pflag.BoolVarP(&verbose, "verbose", "v", false, "enables verbose mode")
pflag.BoolVarP(&silent, "silent", "s", false, "disables echoing")
pflag.BoolVar(&dryRun, "dry-run", false, "compiles and prints tasks in the order that they would be run, without executing them")
pflag.BoolVar(&dryRun, "dry", false, "compiles and prints tasks in the order that they would be run, without executing them")
pflag.StringVarP(&dir, "dir", "d", "", "sets directory of execution")
pflag.Parse()

View File

@ -12,7 +12,7 @@ function __list() {
_arguments \
'(-d --dir)'{-d,--dir}': :_files' \
'(--dry-run)'--dry-run \
'(--dry)'--dry \
'(-f --force)'{-f,--force} \
'(-i --init)'{-i,--init} \
'(-l --list)'{-l,--list} \