aboutsummaryrefslogtreecommitdiffstats
path: root/Argcfile.sh
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-07-03 16:18:32 +0800
committerGitHub <noreply@github.com>2024-07-03 16:18:32 +0800
commit499b7cdef5d62298c17889895a61a110d7cd8168 (patch)
tree94d5c0d1fa7cd90e7948ae9d55e5b00bdf4ac289 /Argcfile.sh
parent970ed06d2b5759e8d17aeed55fbfde591fb0ff84 (diff)
downloadllm-functions-docker-499b7cdef5d62298c17889895a61a110d7cd8168.tar.gz
feat: rename `may_execute_*` to `execute_*` (#56)
Diffstat (limited to 'Argcfile.sh')
-rw-r--r--Argcfile.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/Argcfile.sh b/Argcfile.sh
index 05b9cfb..93cc93b 100644
--- a/Argcfile.sh
+++ b/Argcfile.sh
@@ -77,7 +77,7 @@ build() {
# @option --declarations-file=functions.json <FILE> Path to a json file to save function declarations
# Example:
# get_current_weather.sh
-# may_execute_js_code.js
+# execute_js_code.js
# @arg tools*[`_choice_tool`] The tool filenames
build@tool() {
if [[ "${#argc_tools[@]}" -gt 0 ]]; then
@@ -347,9 +347,9 @@ test-execute-code-tools() {
ext=".cmd"
fi
test_cases=( \
- 'sh#may_execute_command#{"command":"echo \"✓\""}' \
- 'js#may_execute_js_code#{"code":"console.log(\"✓\")"}' \
- 'py#may_execute_py_code#{"code":"print(\"✓\")"}' \
+ 'sh#execute_command#{"command":"echo \"✓\""}' \
+ 'js#execute_js_code#{"code":"console.log(\"✓\")"}' \
+ 'py#execute_py_code#{"code":"print(\"✓\")"}' \
)
for test_case in "${test_cases[@]}"; do