music-importer/cmd.go
2026-04-02 19:14:36 -04:00

14 lines
284 B
Go

package main
import (
"os"
"os/exec"
)
// runCmd executes a shell command, forwarding stdout and stderr to the process output.
func runCmd(name string, args ...string) error {
cmd := exec.Command(name, args...)
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
return cmd.Run()
}