mirror of
https://github.com/go-task/task.git
synced 2025-11-25 22:32:55 +02:00
feat: CLI_FORCE special variable (#1434)
This commit is contained in:
@@ -312,6 +312,7 @@ func run() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
globals.Set("CLI_ARGS", taskfile.Var{Value: cliArgs})
|
globals.Set("CLI_ARGS", taskfile.Var{Value: cliArgs})
|
||||||
|
globals.Set("CLI_FORCE", taskfile.Var{Value: flags.force || flags.forceAll})
|
||||||
e.Taskfile.Vars.Merge(globals)
|
e.Taskfile.Vars.Merge(globals)
|
||||||
|
|
||||||
if !flags.watch {
|
if !flags.watch {
|
||||||
|
|||||||
Reference in New Issue
Block a user