Browse Source

Moved process commands up

Samuel W. Flint 7 years ago
parent
commit
d0150e66a3
1 changed files with 59 additions and 59 deletions
  1. 59 59
      library.org

+ 59 - 59
library.org

@@ -59,6 +59,65 @@ As a person who has a lot of books, I like to be able to keep track of them.  I'
 #+TOC: headlines 3
 #+TOC: listings
 
+* WORKING Process Commands
+:PROPERTIES:
+:CREATED:  <2016-04-13 Wed 22:07>
+:ID:       9d10ce06-45f0-4957-85c3-b8fcfff42da8
+:END:
+
+#+Caption: Process Commands
+#+Name: process-commands
+#+BEGIN_SRC sh
+  COMMAND=$1
+  shift
+
+  case ${COMMAND} in
+      help)
+          display-help
+          exit
+          ;;
+      query)
+          run-query $@
+          exit
+          ;;
+      add)
+          add-single $@
+          exit
+          ;;
+      git)
+          do-git $@
+          exit
+          ;;
+      bulk-add)
+          bulk-add $@
+          exit
+          ;;
+      report)
+          do-report $@
+          exit
+          ;;
+      edit)
+          do-edit $@
+          exit
+          ;;
+      loan)
+           do-loan $@
+           exit
+           ;;
+      return-book)
+          do-return $@
+          exit
+          ;;
+      init)
+          initialize
+          exit
+          ;;
+      ,*)
+          display-help
+          exit
+  esac
+#+END_SRC
+
 * DONE File Format
 CLOSED: [2016-10-26 Wed 18:02]
 :PROPERTIES:
@@ -418,65 +477,6 @@ This handles git as needed, by first checking to see if the first argument is ~i
   }
 #+END_SRC
 
-* WORKING Process Commands
-:PROPERTIES:
-:CREATED:  <2016-04-13 Wed 22:07>
-:ID:       9d10ce06-45f0-4957-85c3-b8fcfff42da8
-:END:
-
-#+Caption: Process Commands
-#+Name: process-commands
-#+BEGIN_SRC sh
-  COMMAND=$1
-  shift
-
-  case ${COMMAND} in
-      help)
-          display-help
-          exit
-          ;;
-      query)
-          run-query $@
-          exit
-          ;;
-      add)
-          add-single $@
-          exit
-          ;;
-      git)
-          do-git $@
-          exit
-          ;;
-      bulk-add)
-          bulk-add $@
-          exit
-          ;;
-      report)
-          do-report $@
-          exit
-          ;;
-      edit)
-          do-edit $@
-          exit
-          ;;
-      loan)
-           do-loan $@
-           exit
-           ;;
-      return-book)
-          do-return $@
-          exit
-          ;;
-      init)
-          initialize
-          exit
-          ;;
-      ,*)
-          display-help
-          exit
-  esac
-#+END_SRC
-
 * DONE Packaging
 CLOSED: [2016-04-16 Sat 15:20]
 :PROPERTIES: