Fork me on GitHub
#babashka
<
2022-06-03
>
borkdude11:06:25

Added more features to babashka CLI today: https://github.com/babashka/cli#quickstart

❤️ 7
lread13:06:48

Neat! I see Windows mentioned in the README. Is making cmd line parsing on that platform perhaps a bit more sane part of the rationale?

lread13:06:43

Oh I see you just mentioned this over at #clj-on-windows! Maybe it should be in your README rationale too?

borkdude13:06:10

Yeah, I think so

borkdude13:06:39

I'm currently thinking about this:

(:opts (cli/parse-args ["--paths.0" "src" "--paths.1 "test"]))
;;=> {:paths ["src" "test"]}

borkdude13:06:20

To explain why, see here (the last remarks): https://github.com/babashka/cli#antq

lread13:06:19

Cool that it supports both : and -- syntaxes. I've been using docopt by default for a while now, will I be swayed to use yet another borknovation?

borkdude13:06:46

And now it supports --foo=bar syntax too :)

lread13:06:07

Oh... that's neat... understanding more now... smart guy that borkdude!

borkdude13:06:05

Parking that idea with future ideas for now: https://github.com/babashka/cli#future-ideas

borkdude14:06:10

I guess another option would be to provide arguments from a file that is merged.

--org.babashka/cli-defaults=foo.edn

emccue15:06:34

seems a transient error, but just in case

26: (pods/load-pod 'clj-kondo/clj-kondo "2022.02.09")
    ^--- Server returned HTTP response code: 503 for URL: 
27: 
28: (deps/add-deps '{:deps {camel-snake-kebab/camel-snake-kebab {:mvn/version "0.4.2"}}})
29: