hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit 21dbfa1f111ca2f066e06af68f267932ce6cf04f
parent e5591e89d3a71560b70c5f0ded33f2c9465ffe5a
Author: Ricardo N Feliciano <FelicianoTech@gmail.com>
Date:   Fri, 24 Jul 2020 12:52:31 -0400

mage: Add uninstall target

Diffstat:
Mmagefile.go | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/magefile.go b/magefile.go
@@ -57,6 +57,11 @@ func Install() error {
 	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{