This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-07-28
Channels
- # announcements (33)
- # aws (2)
- # babashka (14)
- # beginners (128)
- # calva (34)
- # cestmeetup (3)
- # clj-kondo (12)
- # cljdoc (3)
- # clojure (114)
- # clojure-europe (31)
- # clojure-italy (3)
- # clojure-nl (7)
- # clojure-uk (6)
- # clojurescript (35)
- # conjure (20)
- # cursive (3)
- # data-science (3)
- # datomic (16)
- # docker (13)
- # events (1)
- # figwheel-main (22)
- # fulcro (109)
- # jobs (1)
- # kaocha (8)
- # keechma (1)
- # lambdaisland (5)
- # malli (1)
- # meander (8)
- # mid-cities-meetup (1)
- # off-topic (6)
- # overtone (7)
- # pathom (6)
- # re-frame (2)
- # reitit (9)
- # ring (1)
- # shadow-cljs (92)
- # specter (1)
- # tools-deps (311)
- # xtdb (76)
@vlaaad wrote a blog post about a simple way of parsing CLI args for Clojure centric scripts:
https://vlaaad.github.io/tools-cli-in-10-lines-of-code
Made a minor variant of it that works with bb scripts without a -main
:
https://gist.github.com/borkdude/b5e14978572e4658bf74e9451ed5c322
By the way, I realised I don’t need resolving symbols for my use-case and went with a bit simpler approach for reveal entry point https://github.com/vlaaad/reveal/blob/91118db960f00e6048bd8e512f1e0dfeb897b3ff/src/vlaaad/reveal.clj#L84-L89
Hey all, I am trying to plug together babashka and camel-snake-kebab in an uberscript but it appears that the NS’s get copied in to my file out of order so the ubserscript output needs to be rearranged
If that's not the case, then it's probably a bug. An issue with repro would be good, I can take a look tomorrow
Sounds good, got a bunch of other work stuff on my plate ATM so I will try to get a repro together in the next couple of days
Also usability question, when including the shebang for bb
it looks like it doesn’t get moved to the top of an uberscript, is this intentional?
If so, no big deal I can just make a little script that moves the shebang back to the top
I think uberscript just copies the namespace source as is. And it doesn't put a shebang on the top for the resulting script.
so if you require A and A requires B then the source code of ns B is copied on top, then A