From 1b96d4ee4cadf05163d653373423a615723240aa Mon Sep 17 00:00:00 2001 From: sigoden Date: Thu, 14 Nov 2024 21:54:44 +0800 Subject: feat: add `LLM_OUTPUT=/dev/stdout` to all tools/agents bashscripts (#123) --- tools/execute_sql_code.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tools/execute_sql_code.sh') diff --git a/tools/execute_sql_code.sh b/tools/execute_sql_code.sh index ce99c79..df57dea 100755 --- a/tools/execute_sql_code.sh +++ b/tools/execute_sql_code.sh @@ -4,9 +4,11 @@ set -e # @describe Execute the sql code. # @option --code! The code to execute. -# @env USQL_DSN! The database url, e.g. pgsql://user:pass@host/dbname # @meta require-tools usql +# @env USQL_DSN! The database url, e.g. pgsql://user:pass@host/dbname +# @env LLM_OUTPUT=/dev/stdout The output path + main() { if ! grep -qi '^select' <<<"$argc_code"; then if [ -t 1 ]; then -- cgit v1.2.3