Files
Local-Cursor/internal/winexec/winexec_other.go

17 lines
345 B
Go
Raw Normal View History

//go:build !windows
// Package winexec 非 Windows 平台直接透传 exec.Command。
package winexec
import "os/exec"
// Command 等价于 exec.Command。
func Command(name string, args ...string) *exec.Cmd {
return exec.Command(name, args...)
}
// Hide 非 Windows 平台无需处理。
func Hide(cmd *exec.Cmd) *exec.Cmd {
return cmd
}