mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
16 lines
263 B
Go
16 lines
263 B
Go
|
package hugo
|
||
|
|
||
|
import (
|
||
|
"os"
|
||
|
"os/exec"
|
||
|
)
|
||
|
|
||
|
// Run executes an external command
|
||
|
func Run(command string, args []string, path string) error {
|
||
|
cmd := exec.Command(command, args...)
|
||
|
cmd.Dir = path
|
||
|
cmd.Stdout = os.Stdout
|
||
|
cmd.Stderr = os.Stderr
|
||
|
return cmd.Run()
|
||
|
}
|