new to joker, wonder how entry points works.
(ns k3os.foo)
(defn -main [](println "entry point?"))
(defn main- [](println "entry point?"))
(defn main [](println "entry point?"))
And when I run it: $ joker foo.joke
I get no outputI think you'll be better off just calling (println "...")
on the bottom of your script...
What I've done a lot is using joker.tools.cli to parse the arguments and then calling the right function...
Hey guys! I'm trying to find a practical way to parse some XML files using Joker inside a script that I already have... Some ideas?
calling main from the script leads to issues with unit testing etc.
for now that seems to be an option. But ideally, joker should use the clojure standard of -main IMHO
I'll do that
Joker has an implementation of xml-seq
... all references that I found for this fn use it with clojure.data.xml
or clojure.xml
where there is a parse
fn... but has Joker a function like that? If not, how should this fn xml-seq
be used?