Add verbose/silent variables (#1669)

This commit is contained in:
Vincent Smith
2024-06-28 12:13:52 -04:00
committed by GitHub
parent da6f5c66a0
commit 413dcd28a8
2 changed files with 4 additions and 0 deletions

View File

@@ -180,6 +180,8 @@ func run() error {
globals.Set("CLI_ARGS", ast.Var{Value: cliArgs})
globals.Set("CLI_FORCE", ast.Var{Value: flags.Force || flags.ForceAll})
globals.Set("CLI_SILENT", ast.Var{Value: flags.Silent})
globals.Set("CLI_VERBOSE", ast.Var{Value: flags.Verbose})
e.Taskfile.Vars.Merge(globals, nil)
if !flags.Watch {