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

[PATCH 12/25] Finish helper `__luarocks_lua_versions`.



From: Doron Behar <doron.behar@xxxxxxxxx>

---
 Completion/Unix/Command/_luarocks | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/Completion/Unix/Command/_luarocks b/Completion/Unix/Command/_luarocks
index c79d8cd20..c1a47773b 100644
--- a/Completion/Unix/Command/_luarocks
+++ b/Completion/Unix/Command/_luarocks
@@ -54,9 +54,8 @@ __luarocks_c_libs(){
 }
 # }}}
 # {{{ helper: lua versions
-# TODO
-__luarocks_lua_version(){
-	_values -s , 
+__luarocks_lua_versions(){
+	_values -s , 5.3 5.2 5.1
 }
 # }}}
 # {{{ helper: installed rocks cache policy
@@ -391,7 +390,7 @@ local write_rockspec_command_options=(
 	'--summary=[A short one-line description summary]:SUMMARY_TEXT:{_message -e "write a short summary of the rock"}'
 	'--detailed=[A longer description string]:DETAILED_TEXT:{_message -e "write a detailed description of the rock"}'
 	'--homepage=[Project homepage]:URL:_luarocks_write_rockspec_homepage'
-	'--lua-version=[Supported Lua versions]:LUA_VER:__luarocks_version'
+	'--lua-version=[Supported Lua versions]:LUA_VER:__luarocks_lua_versions'
 	'--rockspec-format=[Rockspec format version, such as "1.0" or "1.1"]:VER: '
 	'--tag=[Tag to use. Will attempt to extract version number from it]:TAG:__git_tag'
 	'--lib=[A comma-separated list of libraries that C files need to link to]:__luarocks_c_libs'
-- 
2.17.0



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