mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 18:18:37 +00:00
mage: Add uninstall target
This commit is contained in:
1 parent
e5591e89d3
commit
21dbfa1f11
1 file changed
+5
@@ -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{
|
||||
|
||||
Reference in new issue
Block a user