feat: add fs tools (#59)

This commit is contained in:
sigoden
2024-07-05 21:07:40 +08:00
committed by GitHub
parent 74789b5a72
commit a7834c98fc
6 changed files with 79 additions and 16 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/usr/bin/env bash
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"
}
eval "$(argc --argc-eval "$0" "$@")"