mirror of
https://github.com/go-task/task.git
synced 2025-07-05 00:58:54 +02:00
Changed --dry-run flag to --dry
This commit is contained in:
@ -637,7 +637,7 @@ tasks:
|
|||||||
|
|
||||||
## Dry Run Mode
|
## 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.
|
that would be run without executing them. This is useful for debugging your Taskfiles.
|
||||||
|
|
||||||
## Output syntax
|
## Output syntax
|
||||||
|
@ -17,7 +17,7 @@ var (
|
|||||||
version = "master"
|
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
|
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.
|
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(&watch, "watch", "w", false, "enables watch of the given task")
|
||||||
pflag.BoolVarP(&verbose, "verbose", "v", false, "enables verbose mode")
|
pflag.BoolVarP(&verbose, "verbose", "v", false, "enables verbose mode")
|
||||||
pflag.BoolVarP(&silent, "silent", "s", false, "disables echoing")
|
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.StringVarP(&dir, "dir", "d", "", "sets directory of execution")
|
||||||
pflag.Parse()
|
pflag.Parse()
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ function __list() {
|
|||||||
|
|
||||||
_arguments \
|
_arguments \
|
||||||
'(-d --dir)'{-d,--dir}': :_files' \
|
'(-d --dir)'{-d,--dir}': :_files' \
|
||||||
'(--dry-run)'--dry-run \
|
'(--dry)'--dry \
|
||||||
'(-f --force)'{-f,--force} \
|
'(-f --force)'{-f,--force} \
|
||||||
'(-i --init)'{-i,--init} \
|
'(-i --init)'{-i,--init} \
|
||||||
'(-l --list)'{-l,--list} \
|
'(-l --list)'{-l,--list} \
|
||||||
|
Reference in New Issue
Block a user