mirror of
https://github.com/go-task/task.git
synced 2026-06-11 09:51:50 +00:00
feat: expose .CLI_ASSUME_YES templating variable (#2577)
This commit is contained in:
committed by
GitHub
parent
18efa3982f
commit
1a190a118f
@@ -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()
|
||||
|
||||
@@ -172,6 +172,11 @@ tasks:
|
||||
- **Type**: `bool`
|
||||
- **Description**: Whether `--offline` flag was set
|
||||
|
||||
#### `CLI_ASSUME_YES`
|
||||
|
||||
- **Type**: `bool`
|
||||
- **Description**: Whether `--yes` flag was set
|
||||
|
||||
### Task
|
||||
|
||||
#### `TASK`
|
||||
|
||||
Reference in New Issue
Block a user