Fork me on GitHub
#planck
<
2016-10-08
>
ricardo06:10:48

@mfikes: Is there a way to set the planck classpath as an environment variable, or only the -c parameter?

anmonteiro10:10:07

@ricardo probably not what you’re after, but FWIW this works:

~/Desktop/ export FOO=om/react.jar
 ~/Desktop planck -c `echo $FOO`
Planck 1.17
ClojureScript 1.9.229
    Docs: (doc function-name-here)
          (find-doc "part-of-name-here")
  Source: (source function-name-here)
    Exit: Control+D or :cljs/quit or exit or quit
 Results: Stored in vars *1, *2, *3, an exception in *e

cljs.user=> (require '[cljsjs.react])
nil
cljs.user=> js/React.version
"15.3.0"
cljs.user=>

mfikes12:10:58

@ricardo Planck doesn’t read environment variables for classpath. But, if you believe that might be useful, feel free to log an issue in the repo 🙂