• Home
  • Raw
  • Download

Lines Matching full:runcmd

32  type runCmd func(...string) ([]byte, error)
34 func compileFile(runcmd runCmd, longname string, flags []string) (out []byte, err error) {
42 return runcmd(cmd...)
45 …func compileInDir(runcmd runCmd, dir string, flags []string, names ...string) (out []byte, err err…
55 return runcmd(cmd...)
58 func linkFile(runcmd runCmd, goname string) (err error) {
65 - _, err = runcmd(cmd...)
66 + _, err = runcmd(findGoCmd(), "tool", "link", "-w", "-o", "a.exe", "-L", ".", pfile)
70 +func goRun(runcmd runCmd, flags []string, goname string, args ...string) (out []byte, err error) {
79 + return runcmd(cmd...)
104 out, err := runcmd(cmdline...)
119 - _, err := runcmd("go", "build", goGcflags(), "-o", "a.exe", long)
120 + _, err := runcmd(findGoCmd(), "build", goGcflags(), "-o", "a.exe", long)
146 _, err := runcmd(cmd...)
158 _, err = runcmd(cmd...)
168 _, err = runcmd(cmd...)
175 _, err = runcmd(cmd...)
192 out, err := runcmd(cmd...)
203 out, err = runcmd(append(cmd, args...)...)
226 - if _, err := runcmd("go", "tool", "compile", "-o", pkg, t.goFileName()); err != nil {
233 - if _, err := runcmd(cmd...); err != nil {
237 - out, err = runcmd(append([]string{exe}, args...)...)
245 - out, err = runcmd(append(cmd, args...)...)
247 + out, err := goRun(runcmd, flags, t.goFileName(), args...)
267 - out, err := runcmd(append(cmd, args...)...)
268 + out, err := goRun(runcmd, nil, t.goFileName(), args...)
283 - out, err = runcmd(cmd...)
284 + out, err = goRun(runcmd, nil, tfile)
300 - out, err := runcmd(append(cmd, args...)...)
301 + out, err := goRun(runcmd, nil, t.goFileName(), args...)
316 out, err = runcmd(cmdline...)