diff options
| author | sigoden <sigoden@gmail.com> | 2024-07-05 21:07:40 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-05 21:07:40 +0800 |
| commit | a7834c98fcbe491c59ab4b0689380fd84596f5ee (patch) | |
| tree | 34b5b8b633cf0f63e35f3a96e25ed54b36906be5 /tools/save_file.sh | |
| parent | 74789b5a72cd8e3261f196f4e7197ddba92947d0 (diff) | |
| download | llm-functions-docker-a7834c98fcbe491c59ab4b0689380fd84596f5ee.tar.gz | |
feat: add fs tools (#59)
Diffstat (limited to 'tools/save_file.sh')
| -rwxr-xr-x | tools/save_file.sh | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/tools/save_file.sh b/tools/save_file.sh deleted file mode 100755 index f2d14d0..0000000 --- a/tools/save_file.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env bash -set -e - -# @describe Saves the contents to a file called `file_name` and returns the file path if successful. -# @option --file-name! The name of the file to save to. -# @option --contents! The contents to save. - -main() { - base_dir="${LLM_TOOL_CACHE_DIR:-/tmp}" - output_file="$base_dir/$argc_file_name" - mkdir -p "$(dirname "$output_file")" - echo "$argc_contents" > "$output_file" - echo "$output_file" -} - -eval "$(argc --argc-eval "$0" "$@")" |
