feat: prompt confirmation for fs write operations outside cwd (#90)
This commit is contained in:
+1
-3
@@ -4,12 +4,10 @@ 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"
|
||||
cat "$argc_path" >> "$LLM_OUTPUT"
|
||||
}
|
||||
|
||||
eval "$(argc --argc-eval "$0" "$@")"
|
||||
|
||||
Reference in New Issue
Block a user