From 21dbfa1f111ca2f066e06af68f267932ce6cf04f Mon Sep 17 00:00:00 2001 From: Ricardo N Feliciano Date: Fri, 24 Jul 2020 12:52:31 -0400 Subject: mage: Add uninstall target --- magefile.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'magefile.go') 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{ -- cgit v1.2.3