Includes the current working directory changes. Historical commits and release binaries are excluded to limit Gitea storage. Source base: d7515973fbfd6dd2001fa156c483455b8081c7cb
17 lines
345 B
Go
17 lines
345 B
Go
//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
|
|
}
|