We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6659892 commit 10bab78Copy full SHA for 10bab78
notes
@@ -1,5 +1,8 @@
1
#!/usr/bin/env bash
2
3
+# Version
4
+notes_version="0.4.3"
5
+
6
# Default Date string before config
7
QUICKNOTE_FORMAT="quicknote-%Y-%m-%d"
8
NOTES_EXT="md"
@@ -237,6 +240,13 @@ override this by setting \$NOTES_DIRECTORY to your preferred path.
237
240
EOF
238
241
}
239
242
243
+version() {
244
+ local name=$(basename $0)
245
+ cat <<EOF
246
+$name $notes_version
247
+EOF
248
+}
249
250
main() {
251
local ret=0
252
local cmd=""
@@ -275,6 +285,9 @@ main() {
275
285
--help | -help | -h )
276
286
cmd="usage"
277
287
;;
288
+ --version | -version )
289
+ cmd="version"
290
+ ;;
278
291
* )
279
292
printf "$1 is not a recognized notes command.\n\n"
280
293
0 commit comments