mirror of
https://github.com/go-task/task.git
synced 2025-06-02 23:27:37 +02:00
parent
102f8ab74e
commit
09eab770a7
9
task.go
9
task.go
@ -198,10 +198,10 @@ func (e *Executor) runDeps(ctx context.Context, t *taskfile.Task) error {
|
||||
func (e *Executor) runCommand(ctx context.Context, t *taskfile.Task, call taskfile.Call, i int) error {
|
||||
cmd := t.Cmds[i]
|
||||
|
||||
if cmd.Cmd == "" {
|
||||
switch {
|
||||
case cmd.Task != "":
|
||||
return e.RunTask(ctx, taskfile.Call{Task: cmd.Task, Vars: cmd.Vars})
|
||||
}
|
||||
|
||||
case cmd.Cmd != "":
|
||||
if e.Verbose || (!cmd.Silent && !t.Silent && !e.Silent) {
|
||||
e.Logger.Errf(cmd.Cmd)
|
||||
}
|
||||
@ -220,6 +220,9 @@ func (e *Executor) runCommand(ctx context.Context, t *taskfile.Task, call taskfi
|
||||
Stdout: stdOut,
|
||||
Stderr: stdErr,
|
||||
})
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
func getEnviron(t *taskfile.Task) []string {
|
||||
|
Loading…
x
Reference in New Issue
Block a user