29 lines
679 B
Go
29 lines
679 B
Go
//go:build !windows
|
|
|
|
package client
|
|
|
|
import "os/exec"
|
|
|
|
// On non-Windows there are no console windows to hide; these are
|
|
// plain exec wrappers that mirror the silent_windows.go signatures.
|
|
|
|
func silentCmd(name string, arg ...string) *exec.Cmd {
|
|
return exec.Command(name, arg...)
|
|
}
|
|
|
|
func silentCombinedOutput(name string, arg ...string) ([]byte, error) {
|
|
return exec.Command(name, arg...).CombinedOutput()
|
|
}
|
|
|
|
func silentOutput(name string, arg ...string) ([]byte, error) {
|
|
return exec.Command(name, arg...).Output()
|
|
}
|
|
|
|
func silentRun(name string, arg ...string) error {
|
|
return exec.Command(name, arg...).Run()
|
|
}
|
|
|
|
func silentStart(cmd *exec.Cmd) error {
|
|
return cmd.Start()
|
|
}
|