Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Commit

Permalink
use local runner
Browse files Browse the repository at this point in the history
Signed-off-by: Jason McCallister <jason@craftcms.com>
  • Loading branch information
jasonmccallister committed Apr 6, 2020
1 parent 4de6514 commit 0504ad5
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions internal/nitro/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ package nitro

import (
"log"

"github.com/craftcms/nitro/internal/command"
)

func Run(runner command.Runner, commands []Command) error {
func Run(runner ShellRunner, commands []Command) error {
for _, c := range commands {
if c.Input != "" {
if err := runner.SetInput(c.Input); err != nil {
Expand Down Expand Up @@ -47,8 +45,7 @@ func Run(runner command.Runner, commands []Command) error {
}

if err := runner.Run(preArgs); err != nil {
log.Println("error in runner.Run:", err.Error())
log.Println(preArgs)
log.Println("error in nitro runner:", err.Error())
return err
}
}
Expand Down

0 comments on commit 0504ad5

Please # to comment.