Start integrating Hugo in the new plugin

This commit is contained in:
Henrique Dias
2017-07-11 16:58:18 +01:00
parent 465b10a02a
commit 8b1d36dfb9
26 changed files with 837 additions and 2497 deletions

15
caddy/hugo/utils.go Normal file
View File

@@ -0,0 +1,15 @@
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()
}