aboutsummaryrefslogtreecommitdiffhomepage
path: root/magefile.go
diff options
context:
space:
mode:
Diffstat (limited to 'magefile.go')
-rw-r--r--magefile.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/magefile.go b/magefile.go
index 9b9dbd3d5..335bcf1e5 100644
--- 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{