joker

hairfire 2019-06-14T16:05:52.020900Z

@hairfire has joined the channel

hairfire 2019-06-14T16:06:37.021600Z

New to Joker, been doing Clojure for a couple of years.

hairfire 2019-06-14T16:09:08.025Z

A couple of questions: (1) Any "built-in" way to translate '~' to "HOME" in file paths?, and (2) How to write scripts that pull in other scripts (i.e. In :require [myscript.stuff :as stuff] where do I pult the file, what is its name?). Thanks!

Candid 2019-06-15T04:42:26.025400Z

1) Something like (joker.string/replace "~/test" "~" (get (joker.os/env) "HOME")) should do the trick.

Candid 2019-06-15T04:50:18.025600Z

2) Please see https://github.com/candid82/joker/pull/139#issuecomment-449878510 for the explanation (I need to move it to docs)