This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-04-11
Channels
- # aws (6)
- # beginners (167)
- # cider (41)
- # cljs-dev (6)
- # cljsrn (3)
- # clojure (399)
- # clojure-dusseldorf (1)
- # clojure-nl (2)
- # clojure-spec (3)
- # clojure-uk (47)
- # clojurescript (16)
- # core-async (8)
- # cursive (56)
- # datomic (14)
- # devcards (1)
- # docs (2)
- # duct (2)
- # editors (3)
- # emacs (3)
- # fulcro (178)
- # graphql (10)
- # off-topic (107)
- # onyx (7)
- # pedestal (21)
- # planck (13)
- # re-frame (58)
- # reagent (76)
- # ring-swagger (3)
- # shadow-cljs (85)
- # slack-help (2)
- # sql (1)
- # tools-deps (11)
- # uncomplicate (5)
- # vim (24)
- # yada (4)
hi, I’m trying out the main function method from the scripts page on the Planck user guide, http://planck-repl.org/scripts.html, but I’m not getting any output. It just doesn’t seem to pick up the main function var
#!/usr/bin/env planck
(ns foo.core)
(defn greet [name]
(println (str "Hello " name "!")))
(defn -main [name]
(greet name))
(set! *main-cli-fn* -main)
I’m on OSX. Installed Planck via brew. I run zsh, not sure if that is interfering somehow.
Also, it doesn’t seem to resolve the commandline args either - WARNING: Use of undeclared Var bar.core/*command-line-args*