Files
llm-functions/tools/fs_cat.sh
2024-07-05 21:07:40 +08:00

16 lines
344 B
Bash
Executable File

#!/usr/bin/env bash
set -e
# @describe Read the contents of a file at the specified path.
# Use this when you need to examine the contents of an existing file.
# @env FS_BASE_DIR=. The base dir
# @option --path! The path of the file to read
main() {
path="$FS_BASE_DIR/$argc_path"
cat "$path"
}
eval "$(argc --argc-eval "$0" "$@")"