feat: prompt confirmation for fs write operations outside cwd (#90)
This commit is contained in:
+2
-4
@@ -3,13 +3,11 @@ set -e
|
||||
|
||||
# @describe Create a new directory at the specified path.
|
||||
|
||||
# @env FS_BASE_DIR=. The base dir
|
||||
# @option --path! The path of the directory to create
|
||||
|
||||
main() {
|
||||
path="$FS_BASE_DIR/$argc_path"
|
||||
mkdir -p "$path"
|
||||
echo "Directory created: $path" >> "$LLM_OUTPUT"
|
||||
mkdir -p "$argc_path"
|
||||
echo "Directory created: $argc_path" >> "$LLM_OUTPUT"
|
||||
}
|
||||
|
||||
eval "$(argc --argc-eval "$0" "$@")"
|
||||
|
||||
Reference in New Issue
Block a user