node build fixed

This commit is contained in:
ra_ma
2025-09-20 14:08:38 +01:00
parent c6ebbe069d
commit 3d298fa434
1516 changed files with 535727 additions and 2 deletions

View File

@@ -0,0 +1,22 @@
//go:build !windows
package util
import (
"context"
"os/exec"
)
func NewCmd(arg string, args ...string) *exec.Cmd {
if len(args) == 0 {
return exec.Command(arg)
}
return exec.Command(arg, args...)
}
func NewCmdCtx(ctx context.Context, arg string, args ...string) *exec.Cmd {
if len(args) == 0 {
return exec.CommandContext(ctx, arg)
}
return exec.CommandContext(ctx, arg, args...)
}