summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam S Levy <[email protected]>2018-08-27 11:57:08 -0800
committerAdam S Levy <[email protected]>2018-08-27 11:57:17 -0800
commit5b53660969130ac18dbf017947bcf6c0004d36ff (patch)
treeff6e1b330318281016d1022b42cdd8f2ee02d357
parentfe498e5edaaedcd5f4fe9fe9c14ee23c5cf879dc (diff)
fix(go clean): Added missing flags
Added missing flags go clean -cache -testcache -modcache
-rw-r--r--gocomplete/complete.go13
1 files changed, 8 insertions, 5 deletions
diff --git a/gocomplete/complete.go b/gocomplete/complete.go
index 7b95c1a..d32b62d 100644
--- a/gocomplete/complete.go
+++ b/gocomplete/complete.go
@@ -449,7 +449,7 @@ func main() {
"-unusedfuncs": complete.PredictAnything,
"-unusedresult": complete.PredictNothing,
"-unusedstringmethods": complete.PredictAnything,
- "-v": complete.PredictNothing,
+ "-v": complete.PredictNothing,
},
Args: anyGo,
},
@@ -458,10 +458,13 @@ func main() {
clean := complete.Command{
Flags: complete.Flags{
- "-i": complete.PredictNothing,
- "-r": complete.PredictNothing,
- "-n": complete.PredictNothing,
- "-x": complete.PredictNothing,
+ "-i": complete.PredictNothing,
+ "-r": complete.PredictNothing,
+ "-n": complete.PredictNothing,
+ "-x": complete.PredictNothing,
+ "-cache": complete.PredictNothing,
+ "-testcache": complete.PredictNothing,
+ "-modcache": complete.PredictNothing,
},
Args: complete.PredictOr(anyPackage, ellipsis),
}