mirror of
https://github.com/jimeh/go-tmux.git
synced 2026-02-19 12:56:45 +00:00
feat: Initial working version of tmux package
This commit is contained in:
11
exec_runner.go
Normal file
11
exec_runner.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package tmux
|
||||
|
||||
import (
|
||||
"os/exec"
|
||||
)
|
||||
|
||||
type ExecRunner struct{}
|
||||
|
||||
func (r *ExecRunner) Run(command string, args ...string) ([]byte, error) {
|
||||
return exec.Command(command, args...).CombinedOutput()
|
||||
}
|
||||
Reference in New Issue
Block a user