fix(mvn): complete with compsys instead of compctl (#14241)

This commit is contained in:
Paolo Valletta
2026-11-09 13:36:11 +01:00
committed by GitHub
parent 044bcbf82d
commit 6010fb6260
+10 -3
View File
@@ -347,6 +347,13 @@ function listMavenCompletions {
)
}
compctl -K listMavenCompletions mvn mvnw
compctl -K listMavenCompletions mvn-color
compctl -K listMavenCompletions mvn-or-mvnw
# Completion, via compsys so that tools built on it (fzf-tab, etc.) can take over.
_mvn() {
local -a commands
listMavenCompletions
# _describe splits entries on `:`, so escape it to keep goals like `dependency:tree`.
commands=("${(@)reply//:/\\:}")
_describe -t mvn-commands 'mvn command' commands
}
compdef _mvn mvn mvnw mvn-color mvn-or-mvnw