Better messages
Anirudh Oppiliappan x@icyphox.sh
Fri, 30 Oct 2020 18:00:27 +0530
1 files changed,
3 insertions(+),
3 deletions(-)
jump to
M
build.go
→
build.go
@@ -15,7 +15,7 @@
func execute(cmds []string) { for _, cmd := range cmds { _, err := exec.Command(cmd).Output() - printMsg("executing:", cmd) + printMsg("running:", cmd) if err != nil { printErr(err) }@@ -81,7 +81,7 @@ htmlFile.Close()
} func viteBuild() { - printMsg("executing pre-build actions") + printMsg("executing pre-build actions...") execute(cfg.Prebuild) err := filepath.Walk("./pages", func(path string, info os.FileInfo, err error) error { if err != nil {@@ -117,7 +117,7 @@ _, err = shutil.CopyTree("static", filepath.Join("build", "static"), nil)
if err != nil { printErr(err) } - printMsg("build complete") + printMsg("site build complete") printMsg("executing post-build actions...") execute(cfg.Postbuild) }