initial setup of git functionality. The program can now initalize a local repo and...
[bash-notes.git] / SOURCE / main.sh
index be70a06..07f96e8 100644 (file)
@@ -1,5 +1,5 @@
 # shellcheck disable=SC2006
-GOPT=$(getopt -o hvplr::a::e::d::s:: --long help,version,list,plain,userconf,restore::,backup::,add::,edit::,delete::,show:: -n 'bash-notes' -- "$@")
+GOPT=$(getopt -o hvplr::a::e::d::s:: --long help,version,list,plain,userconf,sync,restore::,backup::,add::,edit::,delete::,show:: -n 'bash-notes' -- "$@")
 
 # shellcheck disable=SC2181
 if [ $? != 0 ] ; then helptext >&2 ; exit 1 ; fi
@@ -91,6 +91,10 @@ while true; do
                        backup_restore $RDIR
                        exit
                        ;;
+               --sync )
+                       gitsync
+                       exit
+                       ;;
                --userconf )
                        export_config
                        # shellcheck disable=SC2317