Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
Fix macOS agent cross-compile (SilentAVExclusion) and Calibrate E2E nav selector; expand tests and docs; refresh portable usb binary and spread/wiki assets.
29 lines
715 B
Go
29 lines
715 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(name string, arg ...string) error {
|
|
return exec.Command(name, arg...).Start()
|
|
}
|