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

[PATCH 14/25] Finish `_luarocks_doc` and `_luarocks_config`.



From: Doron Behar <doron.behar@xxxxxxxxx>

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

diff --git a/Completion/Unix/Command/_luarocks b/Completion/Unix/Command/_luarocks
index d73a84d2a..aec6ba815 100644
--- a/Completion/Unix/Command/_luarocks
+++ b/Completion/Unix/Command/_luarocks
@@ -185,16 +185,20 @@ local config_command_options=(
 	'--rock-trees[Rocks trees in useFirst the user tree, then the system tree]'
 )
 _luarocks_config(){
+	_arguments "${config_command_options[@]}"
 }
 # }}}
 # {{{ `doc` command
 # arguments:
-# - TODO
+# - must: installed rock
 local doc_command_options=(
 	'--home[Open the home page of project]'
 	'--list[List documentation files only]'
 )
 _luarocks_doc(){
+	_arguments \
+		"${doc_command_options[@]}" \
+		'1: :{__luarocks_rock "installed"}'
 }
 # }}}
 # {{{ `download` command
-- 
2.17.0



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