From 0e668ab3f22330c0f395dd38240d7079fe813e90 Mon Sep 17 00:00:00 2001 From: sigoden Date: Sat, 18 May 2024 09:52:20 +0000 Subject: refactor: add the `may_` prefix to reflect updates in AIChat --- bin/execute_command | 11 ----------- bin/may_execute_command | 11 +++++++++++ 2 files changed, 11 insertions(+), 11 deletions(-) delete mode 100755 bin/execute_command create mode 100755 bin/may_execute_command (limited to 'bin') diff --git a/bin/execute_command b/bin/execute_command deleted file mode 100755 index 64fb440..0000000 --- a/bin/execute_command +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env bash -set -e - -# @describe Executes a shell command. This tool does not return data to LLM. -# @option --shell-command~ "Shell command to execute, such as `ls -la`" - -main() { - eval $argc_shell_command -} - -eval "$(argc --argc-eval "$0" "$@")" diff --git a/bin/may_execute_command b/bin/may_execute_command new file mode 100755 index 0000000..6e35e3c --- /dev/null +++ b/bin/may_execute_command @@ -0,0 +1,11 @@ +#!/usr/bin/env bash +set -e + +# @describe Executes a shell command. +# @option --shell-command~ "Shell command to execute, such as `ls -la`" + +main() { + eval $argc_shell_command +} + +eval "$(argc --argc-eval "$0" "$@")" -- cgit v1.2.3