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/fetch_url_via_curl.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tools/fetch_url_via_curl.sh') diff --git a/tools/fetch_url_via_curl.sh b/tools/fetch_url_via_curl.sh index 540984e..508b7cf 100755 --- a/tools/fetch_url_via_curl.sh +++ b/tools/fetch_url_via_curl.sh @@ -2,9 +2,12 @@ set -e # @describe Extract the content from a given URL. -# @meta require-tools pandoc # @option --url! The URL to scrape. +# @meta require-tools pandoc + +# @env LLM_OUTPUT=/dev/stdout The output path + main() { # span and div tags are dropped from the HTML https://pandoc.org/MANUAL.html#raw-htmltex and sed removes any inline SVG images in image tags from the Markdown content. curl -fsSL "$argc_url" | \ -- cgit v1.2.3