about summary refs log tree commit diff stats
path: root/ayu
diff options
context:
space:
mode:
authorNova [ミラーワールド] <novaburst@kalli.st>2021-12-14 00:20:39 +0000
committerNova [ミラーワールド] <novaburst@kalli.st>2021-12-14 00:20:39 +0000
commitae5906527431a58375368a2ef530709db450c1be (patch)
tree8378b1b2a3e9526cdfcfe8b6a9c62eb0d29a4a9d /ayu
parenta8368810968fbef2e1dd914d42de4261055d3227 (diff)
downloadayu-ae5906527431a58375368a2ef530709db450c1be.tar.gz
An earthen Buddha had better not play with water.
Diffstat (limited to 'ayu')
-rwxr-xr-xayu19
1 files changed, 18 insertions, 1 deletions
diff --git a/ayu b/ayu
index 6f13f22..44cce3c 100755
--- a/ayu
+++ b/ayu
@@ -51,9 +51,20 @@ new() {
 	rm $tmpfile
 }
 
+# Remove
+re() {
+	printf "How the fuck one can do this? :( \n"
+	rm -v ${1}${2}.age
+}
+# Remove-recursive
+rr() {
+	test -d "$@" && usage && exit
+	rm -r -v "$(dirname "$@")"
+}
+
 # Print usage
 usage() {
-	printf "$0 [ ed | ls | new | vi ] \n"
+	printf "$0 [ ed | ls | new | re | rr | vi ] \n"
 }
 
 # View an entry, otherwise list the contents of the directory specified.
@@ -78,6 +89,12 @@ case $1 in
 	new)
 		new $2
 		;;
+	remove | re)
+		re $2 $3
+		;;
+	remove-recursive | rr)
+		rr $2
+		;;
 	usage)
 		usage
 		;;