aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Argcfile.sh10
-rwxr-xr-xscripts/bin.js (renamed from run/tool.js)2
-rwxr-xr-xscripts/bin.py (renamed from run/tool.py)2
-rwxr-xr-xscripts/bin.sh (renamed from run/tool.sh)2
4 files changed, 8 insertions, 8 deletions
diff --git a/Argcfile.sh b/Argcfile.sh
index a57debd..8c3c50c 100644
--- a/Argcfile.sh
+++ b/Argcfile.sh
@@ -52,7 +52,7 @@ build-bin() {
_build_win_shim $lang > "$bin_file"
else
bin_file="$BIN_DIR/$basename"
- ln -s "$PWD/run/tool.$lang" "$bin_file"
+ ln -s "$PWD/scripts/bin.$lang" "$bin_file"
fi
else
not_found_funcs+=("$name")
@@ -111,7 +111,7 @@ build-single-declaration() {
func="$1"
lang="${func##*.}"
cmd="$(_lang_to_cmd "$lang")"
- LLM_FUNCTION_ACTION=declarate "$cmd" "run/tool.$lang" "$func"
+ LLM_FUNCTION_ACTION=declarate "$cmd" "scripts/bin.$lang" "$func"
}
# @cmd List functions that can be put into functions.txt
@@ -152,8 +152,8 @@ test-functions() {
echo "Test $cmd_path: $(cat)"
}
if ! _is_win; then
- "$cmd" "run/tool.$lang" "$func" "$data" | {
- echo "Test $cmd run/tool.$lang $func: $(cat)"
+ "$cmd" "scripts/bin.$lang" "$func" "$data" | {
+ echo "Test $cmd scripts/bin.$lang $func: $(cat)"
}
fi
fi
@@ -174,7 +174,7 @@ install() {
fi
}
-# @cmd Show versions of required tools for bug reports.
+# @cmd Show pre-requisite tool versions
version() {
uname -a
argc --argc-version
diff --git a/run/tool.js b/scripts/bin.js
index 3c8e966..22005ee 100755
--- a/run/tool.js
+++ b/scripts/bin.js
@@ -7,7 +7,7 @@ function parseArgv() {
let func_file = process.argv[1];
let func_data = null;
- if (func_file.endsWith("tool.js")) {
+ if (func_file.endsWith("bin.js")) {
func_file = process.argv[2]
func_data = process.argv[3]
} else {
diff --git a/run/tool.py b/scripts/bin.py
index d986692..6c56ea0 100755
--- a/run/tool.py
+++ b/scripts/bin.py
@@ -9,7 +9,7 @@ def parse_argv():
func_file = sys.argv[0]
func_data = None
- if func_file.endswith("tool.py"):
+ if func_file.endswith("bin.py"):
func_file = sys.argv[1] if len(sys.argv) > 1 else None
func_data = sys.argv[2] if len(sys.argv) > 2 else None
else:
diff --git a/run/tool.sh b/scripts/bin.sh
index faafddd..77a6605 100755
--- a/run/tool.sh
+++ b/scripts/bin.sh
@@ -7,7 +7,7 @@ if [[ -f "$LLM_FUNCTIONS_DIR/.env" ]]; then
source "$LLM_FUNCTIONS_DIR/.env"
fi
-if [[ "$0" == *tool.sh ]]; then
+if [[ "$0" == *bin.sh ]]; then
FUNC_FILE="$1"
FUNC_DATA="$2"
else