gograpple/internal/exec/go.go
2023-10-25 16:34:01 +02:00

14 lines
256 B
Go

package exec
type GoCmd struct {
Cmd
}
func NewGoCommand() *GoCmd {
return &GoCmd{*NewCommand("go")}
}
func (c GoCmd) Build(output string, inputs []string, flags ...string) *Cmd {
return c.Args("build", "-o", output).Args(flags...).Args(inputs...)
}