feat: expose .CLI_ASSUME_YES templating variable (#2577)

This commit is contained in:
Semih Buyukgungor
2025-12-16 00:42:27 +03:00
committed by GitHub
parent 18efa3982f
commit 1a190a118f
2 changed files with 6 additions and 0 deletions

View File

@@ -182,6 +182,7 @@ func run() error {
globals.Set("CLI_SILENT", ast.Var{Value: flags.Silent})
globals.Set("CLI_VERBOSE", ast.Var{Value: flags.Verbose})
globals.Set("CLI_OFFLINE", ast.Var{Value: flags.Offline})
globals.Set("CLI_ASSUME_YES", ast.Var{Value: flags.AssumeYes})
e.Taskfile.Vars.ReverseMerge(globals, nil)
if !flags.Watch {
e.InterceptInterruptSignals()