File tree 1 file changed +0
-18
lines changed
1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ package executils
17
17
18
18
import (
19
19
"bytes"
20
- "fmt"
21
20
"io"
22
21
"os/exec"
23
22
)
@@ -71,20 +70,3 @@ func call(stack []*exec.Cmd, pipes []*io.PipeWriter) (err error) {
71
70
func TellCommandNotToSpawnShell (cmd * exec.Cmd ) {
72
71
tellCommandNotToSpawnShell (cmd )
73
72
}
74
-
75
- // Command creates a command with the provided command line arguments.
76
- // The first argument is the path to the executable, the remainder are the
77
- // arguments to the command.
78
- func Command (args ... string ) (* exec.Cmd , error ) {
79
- if args == nil || len (args ) == 0 {
80
- return nil , fmt .Errorf ("no executable specified" )
81
- }
82
- cmd := exec .Command (args [0 ], args [1 :]... )
83
- TellCommandNotToSpawnShell (cmd )
84
-
85
- // This is required because some tools detects if the program is running
86
- // from terminal by looking at the stdin/out bindings.
87
- // https://github.com/arduino/arduino-cli/issues/844
88
- cmd .Stdin = NullReader
89
- return cmd , nil
90
- }
You can’t perform that action at this time.
0 commit comments