mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-02-19 07:50:43 +01:00
12 lines
187 B
Go
12 lines
187 B
Go
package utils
|
|
|
|
import (
|
|
"os/exec"
|
|
)
|
|
|
|
// RunCommand executes a system command
|
|
func RunCommand(name string, args ...string) error {
|
|
cmd := exec.Command(name, args...)
|
|
return cmd.Run()
|
|
}
|