shithub: hugo

Download patch

ref: 21dbfa1f111ca2f066e06af68f267932ce6cf04f
parent: e5591e89d3a71560b70c5f0ded33f2c9465ffe5a
author: Ricardo N Feliciano <FelicianoTech@gmail.com>
date: Fri Jul 24 08:52:31 EDT 2020

mage: Add uninstall target

--- a/magefile.go
+++ b/magefile.go
@@ -57,6 +57,11 @@
 	return sh.RunWith(flagEnv(), goexe, "install", "-ldflags", ldflags, "-tags", buildTags(), packageName)
 }
 
+// Uninstall hugo binary
+func Uninstall() error {
+	return sh.Run(goexe, "clean", "-i", packageName)
+}
+
 func flagEnv() map[string]string {
 	hash, _ := sh.Output("git", "rev-parse", "--short", "HEAD")
 	return map[string]string{