1
0
mirror of https://github.com/go-task/task.git synced 2025-07-15 01:35:00 +02:00

feat: CLI_FORCE special variable (#1434)

This commit is contained in:
Pete Davison
2023-12-20 20:08:57 -06:00
committed by GitHub
parent e53dafa47e
commit e177f48e41

View File

@ -312,6 +312,7 @@ func run() error {
}
globals.Set("CLI_ARGS", taskfile.Var{Value: cliArgs})
globals.Set("CLI_FORCE", taskfile.Var{Value: flags.force || flags.forceAll})
e.Taskfile.Vars.Merge(globals)
if !flags.watch {