1
0
mirror of https://github.com/go-task/task.git synced 2025-11-23 22:24:45 +02:00

feat: remove v2 support (#1447)

* feat: remove v2 support

* docs: update v2 schema docs
This commit is contained in:
Pete Davison
2023-12-29 20:26:02 +00:00
committed by GitHub
parent 212ff42304
commit 2b67d05b9d
31 changed files with 317 additions and 990 deletions

View File

@@ -64,13 +64,12 @@ type Executor struct {
Stderr io.Writer
Logger *logger.Logger
Compiler compiler.Compiler
Compiler *compiler.Compiler
Output output.Output
OutputStyle taskfile.Output
TaskSorter sort.TaskSorter
UserWorkingDir string
taskvars *taskfile.Vars
fuzzyModel *fuzzy.Model
concurrencySemaphore chan struct{}
@@ -349,7 +348,7 @@ func (e *Executor) runCommand(ctx context.Context, t *taskfile.Task, call taskfi
outputWrapper = output.Interleaved{}
}
vars, err := e.Compiler.FastGetVariables(t, call)
outputTemplater := &templater.Templater{Vars: vars, RemoveNoValue: true}
outputTemplater := &templater.Templater{Vars: vars}
if err != nil {
return fmt.Errorf("task: failed to get variables: %w", err)
}