mirror of
https://github.com/zsh-users/zsh-completions.git
synced 2026-12-06 16:08:42 +08:00
Mvn: Do not redefine caching policies if already done
This commit is contained in:
1 parent
77588c6188
commit
28ab44c7a2
1 file changed
+4
@@ -522,6 +522,7 @@ _mvn_booleans() {
|
||||
_describe -t "booleans" "boolean" booleans
|
||||
}
|
||||
|
||||
(( $+functions[_mvn_goals_caching_policy] )) ||
|
||||
_mvn_goals_caching_policy() {
|
||||
# Rebuild if cache is older than one month.
|
||||
local -a oldp
|
||||
@@ -529,14 +530,17 @@ _mvn_goals_caching_policy() {
|
||||
(( $#oldp ))
|
||||
}
|
||||
|
||||
(( $+functions[_mvn_properties_caching_policy] )) ||
|
||||
_mvn_properties_caching_policy() {
|
||||
_mvn_goals_caching_policy
|
||||
}
|
||||
|
||||
(( $+functions[_mvn_groupIds_caching_policy] )) ||
|
||||
_mvn_groupIds_caching_policy() {
|
||||
_mvn_goals_caching_policy
|
||||
}
|
||||
|
||||
(( $+functions[_mvn_profiles_caching_policy] )) ||
|
||||
_mvn_profiles_caching_policy() {
|
||||
# Resolve the cache directory.
|
||||
local cache_dir
|
||||
|
||||
Reference in new issue
Block a user