14 lines
400 B
Bash
Executable File
14 lines
400 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.
|
|
|
|
# @option --path! The path of the file to read
|
|
|
|
# @env LLM_OUTPUT=/dev/stdout The output path
|
|
|
|
main() {
|
|
# shellcheck disable=SC2154
|
|
cat "$argc_path" >> "$LLM_OUTPUT" 2>&1 || echo "No such file or path: $argc_path" >> "$LLM_OUTPUT"
|
|
} |