aboutsummaryrefslogtreecommitdiffstats
path: root/tools/fs_cat.sh
blob: bec9a12132718829f568c99c5070c9d3f0129125 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/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" >> "$LLM_OUTPUT"
}

eval "$(argc --argc-eval "$0" "$@")"