Fork me on GitHub
#babashka
<
2021-12-24
>
borkdude10:12:45

Proof of concept for reusable "tasks" (as normal functions from a library):

{:deps {common/tasks
        {:git/url ""
         :git/sha "4102881c929f31a7959180487001ddf68199de18"}}
 :tasks {lint     common.tasks/clj-kondo
         outdated common.tasks/antq}}
See issue https://github.com/babashka/babashka/issues/1103#issuecomment-1000783650.

🤓 1
mkvlr11:12:30

looks great, deps would also work with the new syntax inferring the git/url from the dep name I assume?

borkdude11:12:30

this already works today btw

borkdude11:12:48

all of the above

mkvlr11:12:15

nice, the best kind of feature requests

borkdude11:12:24

Made another something (while helping @alex.sheluchin we came up with this): https://github.com/babashka/nrepl-client

🚀 2
❤️ 1
isak15:12:26

Is this a bug? With bb I get no error message:

PS C:\src> bb
Babashka v0.7.0 REPL.
Use :repl/quit or :repl/exit to quit the REPL.
Clojure rocks, Bash reaches.

user=> (partition (range 5) 3)

(user=>
Here is the same thing with clj:
PS C:\src> clj
Clojure 1.10.3
user=> (partition (range 5) 3)
Error printing return value (IllegalArgumentException) at clojure.lang.RT/seqFrom (RT.java:557).
Don't know how to create ISeq from: java.lang.Long
(user=>

borkdude15:12:20

Hmm, yeah, feel free to post an issue about this!

1