1
0
mirror of https://github.com/go-task/task.git synced 2025-11-06 09:09:13 +02:00

Upgrade mvdan.cc/sh to use edge

This commit is contained in:
Andrey Nering
2019-09-08 21:55:02 -03:00
parent 8f684ffa6d
commit bbdd698869
3 changed files with 24 additions and 22 deletions

View File

@@ -8,10 +8,10 @@ import (
"path/filepath"
"strings"
"mvdan.cc/sh/expand"
"mvdan.cc/sh/interp"
"mvdan.cc/sh/shell"
"mvdan.cc/sh/syntax"
"mvdan.cc/sh/v3/expand"
"mvdan.cc/sh/v3/interp"
"mvdan.cc/sh/v3/shell"
"mvdan.cc/sh/v3/syntax"
)
// RunCommandOptions is the options for the RunCommand func
@@ -49,8 +49,7 @@ func RunCommand(ctx context.Context, opts *RunCommandOptions) error {
interp.Dir(opts.Dir),
interp.Env(expand.ListEnviron(environ...)),
interp.Module(interp.DefaultExec),
interp.Module(interp.OpenDevImpls(interp.DefaultOpen)),
interp.WithOpenModules(interp.OpenDevImpls),
interp.StdIO(opts.Stdin, opts.Stdout, opts.Stderr),
)