this is really fun
This commit is contained in:
parent
6780fa789f
commit
4aa4a4ebd1
1 changed files with 2 additions and 4 deletions
|
|
@ -9,7 +9,6 @@ import (
|
||||||
"github.com/maddalax/htmgo/cli/htmgo/tasks/util"
|
"github.com/maddalax/htmgo/cli/htmgo/tasks/util"
|
||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
"os/exec"
|
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"regexp"
|
"regexp"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
@ -41,9 +40,8 @@ func DownloadTemplate(outPath string) {
|
||||||
tempOut := newModuleName + "_temp_" + strconv.FormatInt(time.Now().Unix(), 10)
|
tempOut := newModuleName + "_temp_" + strconv.FormatInt(time.Now().Unix(), 10)
|
||||||
|
|
||||||
fmt.Printf("Downloading template %s\n", templateName)
|
fmt.Printf("Downloading template %s\n", templateName)
|
||||||
install := exec.Command("git", "clone", "https://github.com/maddalax/htmgo", "--depth=1", tempOut)
|
|
||||||
err := install.Run()
|
err := process.Run("git clone https://github.com/maddalax/htmgo --depth=1 "+tempOut, process.ExitOnError)
|
||||||
_, err = install.CombinedOutput()
|
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("Error cloning the template, error: %s\n", err.Error())
|
log.Fatalf("Error cloning the template, error: %s\n", err.Error())
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue