feat: add LLM_OUTPUT=/dev/stdout to all tools/agents bashscripts (#123)

This commit is contained in:
sigoden
2024-11-14 21:54:44 +08:00
committed by GitHub
parent afbd03f963
commit 1b96d4ee4c
23 changed files with 58 additions and 12 deletions
+3 -1
View File
@@ -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