mirror of
https://github.com/duke-git/lancet.git
synced 2026-02-04 12:52:28 +08:00
26 lines
352 B
Go
26 lines
352 B
Go
//go:build darwin
|
|
|
|
package system
|
|
|
|
import (
|
|
"os/exec"
|
|
)
|
|
|
|
func WithForeground() Option {
|
|
return func(c *exec.Cmd) {
|
|
// if c.SysProcAttr == nil {
|
|
// c.SysProcAttr = &syscall.SysProcAttr{
|
|
// Foreground: true,
|
|
// }
|
|
// } else {
|
|
// c.SysProcAttr.Foreground = true
|
|
// }
|
|
}
|
|
}
|
|
|
|
func WithWinHide() Option {
|
|
return func(c *exec.Cmd) {
|
|
|
|
}
|
|
}
|