Started work on v2a rewrite

This commit is contained in:
Jon Lewis
2016-12-27 14:54:06 -06:00
parent c410a2a69f
commit 207db67b68
22 changed files with 5 additions and 672 deletions

7
sns.sh
View File

@@ -1,6 +1,6 @@
#!/bin/bash
XL_PRODUCT="Simple Note System"
XL_VER="v2.1"
XL_VER="v2a"
#Environment
SNS_STORE="$HOME/.local/sns"
@@ -26,7 +26,6 @@ function sns_checkDeps(){
}
function sns_initStore(){
mkdir -p "$SNS_STORE"
mkdir -p "$SNS_STORE/notes"
echo "$1" > "$SNS_KEYFILE"
}
function sns_printHelp(){
@@ -50,6 +49,10 @@ function sns_gitPassthrough(){
}
# Entry Point
printf "%s\n%s\n" "$XL_PRODUCT" "$XL_VER"
if [ -d "$SNS_STORE" ] && [ "$1" != "-i" ]; then
printf "%s\n" "Please run \`sns -i\` to initialize sns."
exit
fi
while getopts ":ihc:e:p:d:git:" OPT; do
case "$OPT" in
*)