scripts: Add 'make uninstall' command

This change adds the `make uninstall` command which will uninstall delve.
This commit is contained in:
chainhelen 2019-09-13 11:40:26 +08:00 committed by Alessandro Arzilli
parent 69e6b613d8
commit 58a7c84e01
2 changed files with 11 additions and 0 deletions

@ -9,6 +9,9 @@ build:
install:
@go run scripts/make.go install
uninstall:
@go run scripts/make.go uninstall
test:
@go run scripts/make.go test

@ -54,6 +54,14 @@ func NewMakeCommands() *cobra.Command {
},
})
RootCommand.AddCommand(&cobra.Command{
Use: "uninstall",
Short: "Uninstalls delve",
Run: func(cmd *cobra.Command, args []string) {
execute("go", "clean", "-i", DelveMainPackagePath)
},
})
test := &cobra.Command{
Use: "test",
Short: "Tests delve",