aboutsummaryrefslogtreecommitdiffstats
path: root/tools/fs_ls.sh
blob: 876765a97e9f92c09bc58418b1c2d683304b4168 (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"
}

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