Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH 06/25] Use better naming scheme for common helpers.
- X-seq: zsh-workers 42832
- From: doron.behar@xxxxxxxxx
- To: zsh-workers@xxxxxxx
- Subject: [PATCH 06/25] Use better naming scheme for common helpers.
- Date: Sat, 26 May 2018 18:06:15 +0300
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=eZ5jNFPfbYcvF6LUAvhAn5CiX3jK8817xif+0lR00vc=; b=ZUgPgvt7vwyLlOES/JchwovFAhJn/ZquezgG1SokzyUatJQtmLQCtN+L5h1/WCouZN W8mZe3LDnocQDdPM1V5O8GGvhYOeAsVGEROfPLpdhppGFThZNPh3q/fMyLudebvhuVT+ S/rtHy8u6z9MQ+2Ie2kTChvZqxAewagFCKLs0l7YQARUuQ6zQutnfSjEOI5h3SruI4kW iubD5idw8eGc+PEt/qV9WSHInyBwGBEcjU4UW/Ftf58amLAzpCM2r9oq077aValejwbs XYwmDUxt+W2b7ej1RIGplQyXFE2AE2MHhT4WoWGH6RXN//YWIj5SlTyaU1EaY1Ao6Nok 7L2g==
- In-reply-to: <20180526150634.15683-1-doron.behar@gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20180526150634.15683-1-doron.behar@gmail.com>
From: Doron Behar <doron.behar@xxxxxxxxx>
Rename `_luarocks_build_deps_mode` to `__luarocks_deps_mode`.
Rename `_luarocks_version` to `__luarocks_version`.
---
Completion/Unix/Command/_luarocks | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/Completion/Unix/Command/_luarocks b/Completion/Unix/Command/_luarocks
index 1b3767b17..990582d99 100644
--- a/Completion/Unix/Command/_luarocks
+++ b/Completion/Unix/Command/_luarocks
@@ -6,13 +6,13 @@ local make_command_options=(
'--keep[Do not remove previously installed versions of the rock after building a new one]'
'--branch=[Override the `source.branch` field in the loaded rockspec]:NAME:{_message "branch name"}'
)
-local option_deps_mode='--deps-mode=[How to handle dependencies. Four modes are supported:MODE:_luarocks_build_deps_mode'
+local option_deps_mode='--deps-mode=[How to handle dependencies. Four modes are supported:MODE:__luarocks_deps_mode'
local build_command_options=(
"${make_command_options[@]}"
'--only-deps[Installs only the dependencies of the rock]'
$option_deps_mode
)
-_luarocks_build_deps_mode(){
+__luarocks_deps_mode(){
local modes=(
'all:use all trees from the rocks_trees list for finding dependencies'
'one:use only the current tree (possibly set with --tree)'
@@ -165,7 +165,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_version'
'--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_write_rockspec_lib'
@@ -173,7 +173,7 @@ local write_rockspec_command_options=(
_luarocks_write_rockspec_lib(){
}
# TODO
-_luarocks_version(){
+__luarocks_version(){
_values -s ,
_luarocks_write_rockspec(){
}
--
2.17.0
Messages sorted by:
Reverse Date,
Date,
Thread,
Author