about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorelioat <elioat@tilde.institute>2023-02-18 00:29:36 -0500
committerelioat <elioat@tilde.institute>2023-02-18 00:29:36 -0500
commit49bc70ebaff08d65340391d6b6675b60d6eca3c9 (patch)
treef3864a9be13f7ff5fada964db713e454fff82663
parentb54b74ad96e9d1854f9bac72cb129908f5261a37 (diff)
downloadtour-49bc70ebaff08d65340391d6b6675b60d6eca3c9.tar.gz
*
-rwxr-xr-xbash/moon-maker/mm23
1 files changed, 11 insertions, 12 deletions
diff --git a/bash/moon-maker/mm b/bash/moon-maker/mm
index b008e90..b4bfb03 100755
--- a/bash/moon-maker/mm
+++ b/bash/moon-maker/mm
@@ -12,14 +12,14 @@ EDITOR="subl"
 add-moons () {
     if [[ -d ".moons" ]]; then
         touch ".moons/$1"
-        echo -e "A new moon is orbiting $2"
+        echo -e "a new moon is orbiting $2"
     else
         path=$(pwd)
         while [ -n "$path" ]; do
             path=${path%/*}
             if [ -d "$path/.moons" ]; then
                 touch "$path/.moons/$1"
-                echo -e "A new moon is orbiting $2"
+                echo -e "a new moon is orbiting $2"
                 return
             fi
         done
@@ -29,14 +29,14 @@ add-moons () {
 delete-moon-by-moon-id () {
     if [[ -d ".moons" ]]; then
         rm .moons/*"$1"*
-        echo -e "The moon $1 has been removed"
+        echo -e "the moon $1 has been removed"
     else
         path=$(pwd)
         while [ -n "$path" ]; do
             path=${path%/*}
             if [ -d "$path/.moons" ]; then
                 rm "$path/.moons/"*"$1"*
-                echo -e "The moon $1 has been removed"
+                echo -e "the moon $1 has been removed"
                 return
             fi
         done
@@ -46,14 +46,14 @@ delete-moon-by-moon-id () {
 delete-moons-by-planet () {
     if [[ -d ".moons" ]]; then
         rm .moons/"$1"*
-        echo -e "All moons orbiting $1 have been deleted."
+        echo -e "all moons orbiting $1 have been deleted."
     else
         path=$(pwd)
         while [ -n "$path" ]; do
             path=${path%/*}
             if [ -d "$path/.moons" ]; then
                 rm "$path/.moons/$1"*
-                echo -e "All moons orbiting $1 have been deleted."
+                echo -e "all moons orbiting $1 have been deleted."
                 return
             fi
         done
@@ -99,14 +99,14 @@ list-moons-by-planet () {
 rename-planet-and-orbiting-moons () {
     if [[ -d ".moons" ]]; then
         for file in .moons/"$1"* ; do mv "$file" "${file//$1/$2}" ; done
-        echo -e "Planets and moons have been renamed from $1 to $2"
+        echo -e "planets and moons have been renamed from $1 to $2"
     else
         path=$(pwd)
         while [ -n "$path" ]; do
             path=${path%/*}
             if [ -d "$path/.moons" ]; then
                 for file in "$path/.moons/$1"* ; do mv "$file" "${file//$1/$2}" ; done
-                echo -e "Planets and moons have been renamed from $1 to $2"
+                echo -e "planets and moons have been renamed from $1 to $2"
                 return
             fi
         done
@@ -120,6 +120,8 @@ help_text() {
     echo '
     Moon Maker
 
+    ⋆⁺₊⋆ ☾⋆⁺₊⋆
+
     mm, is a small program that lets you add orbiting moons to planet files.
 
     A planet file is one that you care about -- probably an actual file in your project.
@@ -144,10 +146,7 @@ elif [[ "${1-}" =~ ^-*i(nit)?$ ]]; then
         mkdir ".moons"
         echo -e "moons initialized"
     else
-        echo -e "   
-            a moon maker directory already exists 
-            so you can't add another one here.
-            "
+        echo -e "there's already a moon directory here"
     fi
     exit
 elif [[ "${1-}" =~ ^-*o(pen)?$ ]]; then
'>
f099bf9a ^
441422dd ^
ca26452a ^
8c5866ff ^
069bdbc3 ^

2b0108e6 ^
60820007 ^
4f98bc8c ^

ca26452a ^

8dbe300d ^




6d5d41b3 ^
0a42be57 ^
6d5d41b3 ^
e0732ad0 ^

f9b4abe3 ^

46ee72f9 ^
3d6ebf48 ^

aa26278a ^
c71259c3 ^

e559c33d ^
291c6bc3 ^
a114fe88 ^

921f026c ^

213ccc01 ^

c71259c3 ^
5a625dd8 ^

5a625dd8 ^
6b697054 ^

8dbe300d ^





ca26452a ^
7982b8e4 ^
069bdbc3 ^

ca26452a ^
6d5d41b3 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111