chore: import Local-Cursor v1.1.8 source snapshot
Includes the current working directory changes. Historical commits and release binaries are excluded to limit Gitea storage. Source base: d7515973fbfd6dd2001fa156c483455b8081c7cb
This commit is contained in:
16
internal/winexec/winexec_other.go
Normal file
16
internal/winexec/winexec_other.go
Normal file
@@ -0,0 +1,16 @@
|
||||
//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
|
||||
}
|
||||
Reference in New Issue
Block a user