|
@@ -259,20 +259,6 @@ This handles git as needed, by first checking to see if the first argument is ~i
|
|
|
}
|
|
|
#+END_SRC
|
|
|
|
|
|
-* WORKING View the File in Emacs with Rec Mode
|
|
|
-:PROPERTIES:
|
|
|
-:CREATED: <2016-04-13 Wed 20:17>
|
|
|
-:ID: adfb988b-508b-4b3e-91a7-fd549ef3779e
|
|
|
-:END:
|
|
|
-
|
|
|
-#+Caption: View in Emacs
|
|
|
-#+Name: view-in-emacs
|
|
|
-#+BEGIN_SRC sh
|
|
|
- function view-in-emacs {
|
|
|
- emacsclient --alternate-editor="" -n ${LIBRARYFILE}
|
|
|
- }
|
|
|
-#+END_SRC
|
|
|
-
|
|
|
* WORKING Handle Reporting
|
|
|
:PROPERTIES:
|
|
|
:CREATED: <2016-04-13 Wed 20:18>
|
|
@@ -410,18 +396,17 @@ This handles git as needed, by first checking to see if the first argument is ~i
|
|
|
#+Name: help-message
|
|
|
#+BEGIN_SRC sh
|
|
|
if [[ $# -eq 0 ]] ; then
|
|
|
- echo "library [ help | query | add | emacs | git | bulk-add | report | edit | loan | do-return | init ]"
|
|
|
+ echo "library [ help | query | add | git | bulk-add | report | edit | loan | do-return | init ]"
|
|
|
exit
|
|
|
fi
|
|
|
|
|
|
function display-help {
|
|
|
cat <<EOF
|
|
|
- library [ help | query | add | emacs | git | bulk-add | report | edit | loan | do-return | init ]
|
|
|
+ library [ help | query | add | git | bulk-add | report | edit | loan | do-return | init ]
|
|
|
|
|
|
help: Display this help message.
|
|
|
query: Query Library Database.
|
|
|
add: Add a singular book record.
|
|
|
- emacs: View records in emacs.
|
|
|
git: Run a git command.
|
|
|
bulk-add: Add a specified number of records.
|
|
|
report: Run a report.
|
|
@@ -470,10 +455,6 @@ This handles git as needed, by first checking to see if the first argument is ~i
|
|
|
do-report $@
|
|
|
exit
|
|
|
;;
|
|
|
- emacs)
|
|
|
- view-in-emacs
|
|
|
- exit
|
|
|
- ;;
|
|
|
edit)
|
|
|
do-edit $@
|
|
|
exit
|
|
@@ -528,8 +509,6 @@ Finally, this is what puts the application together. Placing each function in i
|
|
|
|
|
|
<<initialize-database>>
|
|
|
|
|
|
- <<view-in-emacs>>
|
|
|
-
|
|
|
<<loan>>
|
|
|
|
|
|
<<process-commands>>
|