From a7834c98fcbe491c59ab4b0689380fd84596f5ee Mon Sep 17 00:00:00 2001 From: sigoden Date: Fri, 5 Jul 2024 21:07:40 +0800 Subject: feat: add fs tools (#59) --- tools/fs_rm.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 tools/fs_rm.sh (limited to 'tools/fs_rm.sh') diff --git a/tools/fs_rm.sh b/tools/fs_rm.sh new file mode 100755 index 0000000..3d84fe8 --- /dev/null +++ b/tools/fs_rm.sh @@ -0,0 +1,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" +} + +eval "$(argc --argc-eval "$0" "$@")" -- cgit v1.2.3