scripts: Add 'make uninstall' command
This change adds the `make uninstall` command which will uninstall delve.
This commit is contained in:
parent
69e6b613d8
commit
58a7c84e01
3
Makefile
3
Makefile
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user