From 3f7e8c88eb08cfa73fbf1eb4d83d76f9bc428a74 Mon Sep 17 00:00:00 2001 From: Josh Bebbington Date: Sun, 29 Jul 2018 22:03:22 +0100 Subject: [PATCH] Changed --dry-run flag to --dry --- README.md | 2 +- cmd/task/task.go | 4 ++-- completion/zsh/_task | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index cc55baa1..919c7e5d 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/cmd/task/task.go b/cmd/task/task.go index 8f9c2a76..18a4e2bd 100644 --- a/cmd/task/task.go +++ b/cmd/task/task.go @@ -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() diff --git a/completion/zsh/_task b/completion/zsh/_task index 6c9a7b13..438465ce 100644 --- a/completion/zsh/_task +++ b/completion/zsh/_task @@ -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} \