aboutsummaryrefslogtreecommitdiffstats
path: root/tools/fetch_url_via_curl.sh
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-11-14 21:54:44 +0800
committerGitHub <noreply@github.com>2024-11-14 21:54:44 +0800
commit1b96d4ee4cadf05163d653373423a615723240aa (patch)
treeb528d9e7791a2ed1ca8ce36098eec7c160200613 /tools/fetch_url_via_curl.sh
parentafbd03f963b08419a3835c9473d757bf936c8b92 (diff)
downloadllm-functions-docker-1b96d4ee4cadf05163d653373423a615723240aa.tar.gz
feat: add `LLM_OUTPUT=/dev/stdout` to all tools/agents bashscripts (#123)
Diffstat (limited to 'tools/fetch_url_via_curl.sh')
-rwxr-xr-xtools/fetch_url_via_curl.sh5
1 files changed, 4 insertions, 1 deletions
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" | \