Skip to content

Commit

Permalink
Fix: try returning promise to stop sys/exit of climatic.
Browse files Browse the repository at this point in the history
  • Loading branch information
teesloane committed May 4, 2020
1 parent 0e489b4 commit 0ba10da
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion clojure/src/firn/build.clj
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,11 @@

(defn serve
[opts]
(mount/start-with-args opts))
(mount/start-with-args opts)
(promise))

;; cider won't boot if this is uncommented at jack-in:
;; (serve {:-path "/Users/tees/Projects/firn/firn/clojure/test/firn/demo_org"})
;; (serve {:-path "/Users/tees/Dropbox/wiki"})

;; (mount/stop)
4 changes: 3 additions & 1 deletion clojure/src/firn/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@

(defn -main
"Parsed command line arguments and runs corresponding functions.
NOTE: This cannot be used from a REPL; run-cmd invokes system/exit."
NOTE: This cannot be used from a REPL; run-cmd invokes system/exit.
TODO: Replace with tools.cli - CLI-matic is quite large code wise, actually
and requires hacks for long running processes."
[& args]
(init!)
(clojure.lang.RT/loadLibrary "mylib")
Expand Down

0 comments on commit 0ba10da

Please sign in to comment.