Initial commit, ACM PEARC25 and PEARC26 chosen restaurants work.
Committer: hpcdisrespecter <noreply@git.asperger.pro> modified: .gitignore modified: README.md new file: menus/peoples-organic.sexp new file: menus/townhall-shortnorth.sexp new file: organic-cafe.asd new file: run.lisp new file: src/package.lisp new file: src/planner.lisp new file: test/tests.lisp
This commit is contained in:
17
run.lisp
Normal file
17
run.lisp
Normal file
@@ -0,0 +1,17 @@
|
||||
(require "asdf")
|
||||
|
||||
(let* ((script (or *load-truename* *compile-file-truename*))
|
||||
(root (uiop:pathname-directory-pathname script))
|
||||
(default-menu (merge-pathnames "menus/peoples-organic.sexp" root)))
|
||||
;; Loading source here keeps the CLI read-only. The ASDF system remains
|
||||
;; available for compiled development and test workflows.
|
||||
(load (merge-pathnames "src/package.lisp" root))
|
||||
(load (merge-pathnames "src/planner.lisp" root))
|
||||
(handler-case
|
||||
(uiop:quit
|
||||
(uiop:symbol-call :organic-cafe :run-cli
|
||||
(rest sb-ext:*posix-argv*)
|
||||
:default-menu default-menu))
|
||||
(error (condition)
|
||||
(format *error-output* "Error: ~A~%" condition)
|
||||
(uiop:quit 1))))
|
||||
Reference in New Issue
Block a user