Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[PATCH 16/25] Finish completions for purge and new_version.



From: Doron Behar <doron.behar@xxxxxxxxx>

---
 Completion/Unix/Command/_luarocks | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/Completion/Unix/Command/_luarocks b/Completion/Unix/Command/_luarocks
index db27a76d5..c2ecde869 100644
--- a/Completion/Unix/Command/_luarocks
+++ b/Completion/Unix/Command/_luarocks
@@ -292,6 +292,11 @@ local new_version_command_options=(
 	'--tag=[if no version is specified, this option'"'"'s argument is used instead]:TAG:__git_tag'
 )
 _luarocks_new_version(){
+	_arguments -A "-*" \
+		"${new_version_command_options[@]}" \
+		'1:: :{__luarocks_rock "external" "rockspec"}' \
+		'2:: :{__luarocks_rock_version "external_or_local"}' \
+		'3:: :_urls'
 }
 # }}}
 # {{{ `pack` command
@@ -324,6 +329,7 @@ local purge_command_options=(
 	$option_force
 )
 _luarocks_purge(){
+	_arguments "${purge_command_options[@]}"
 }
 # }}}
 # {{{ `remove` command
-- 
2.17.0



Messages sorted by: Reverse Date, Date, Thread, Author