aboutsummaryrefslogtreecommitdiffstats
path: root/tools/fs_rm.sh
blob: 1d40295cda1eb82c90963998f50d36c8b66d6fed (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env bash
set -e

# @describe Remove the file or directory at the specified path.

# @env FS_BASE_DIR=. The base dir
# @option --path! The path of the file or directory to remove

main() {
    path="$FS_BASE_DIR/$argc_path"
    rm -rf "$path"
    echo "Path removed: $path" >> "$LLM_OUTPUT"
}

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