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

# @describe List all files and directories at the specified path.

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

main() {
    path="$FS_BASE_DIR/$argc_path"
    ls -1 "$path" >> "$LLM_OUTPUT"
}

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