aboutsummaryrefslogtreecommitdiffstats
path: root/Argcfile.sh
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-06-08 11:40:54 +0800
committerGitHub <noreply@github.com>2024-06-08 11:40:54 +0800
commit8a87890df6e2b5356d4877a311dd8937a92d11a1 (patch)
tree13c3412204f0c835974da0930808b454224ab284 /Argcfile.sh
parent2b5b0f6502cc245b2365e4a8b5fdaaefb9d67b5d (diff)
downloadllm-functions-docker-8a87890df6e2b5356d4877a311dd8937a92d11a1.tar.gz
feat: rename functions.txt to tools.txt (#35)
Diffstat (limited to 'Argcfile.sh')
-rw-r--r--Argcfile.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/Argcfile.sh b/Argcfile.sh
index 10f5727..d2acd4f 100644
--- a/Argcfile.sh
+++ b/Argcfile.sh
@@ -28,7 +28,7 @@ build() {
}
# @cmd Build tools
-# @option --names-file=functions.txt Path to a file containing tool filenames, one per line.
+# @option --names-file=tools.txt Path to a file containing tool filenames, one per line.
# This file specifies which tools will be used.
# @option --declarations-file=functions.json <FILE> Path to a json file to save function declarations
# Example:
@@ -40,7 +40,7 @@ build-tools() {
}
# @cmd Build tools to bin
-# @option --names-file=functions.txt Path to a file containing tool filenames, one per line.
+# @option --names-file=tools.txt Path to a file containing tool filenames, one per line.
# @arg tools*[`_choice_tool`] The tool filenames
build-tools-bin() {
mkdir -p "$BIN_DIR"
@@ -79,7 +79,7 @@ build-tools-bin() {
}
# @cmd Build tool functions.json
-# @option --names-file=functions.txt Path to a file containing tool filenames, one per line.
+# @option --names-file=tools.txt Path to a file containing tool filenames, one per line.
# @option --declarations-file=functions.json <FILE> Path to a json file to save function declarations
# @arg tools*[`_choice_tool`] The tool filenames
build-tools-json() {
@@ -125,9 +125,9 @@ build-tool-declaration() {
"$cmd" "scripts/build-declarations.$lang" "tools/$1" | jq '.[0]'
}
-# @cmd List tools that can be put into functions.txt
+# @cmd List tools that can be put into tools.txt
# Examples:
-# argc list-tools > functions.txt
+# argc list-tools > tools.txt
list-tools() {
_choice_tool
}
@@ -141,7 +141,7 @@ test() {
test-tools() {
tmp_dir="cache/tmp"
mkdir -p "$tmp_dir"
- names_file="$tmp_dir/functions.txt"
+ names_file="$tmp_dir/tools.txt"
declarations_file="$tmp_dir/functions.json"
argc list-tools > "$names_file"
argc build-tools --names-file "$names_file" --declarations-file "$declarations_file"