Skip to content

Commit

Permalink
mage: Add uninstall target
Browse files Browse the repository at this point in the history
  • Loading branch information
FelicianoTech authored and bep committed Jul 30, 2020
1 parent e5591e8 commit 21dbfa1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 21dbfa1

Please sign in to comment.