Fork me on GitHub
#babashka
<
2021-07-27
>
borkdude08:07:52

I'll try to fix as many as possible, will take a bit of time :)

borkdude08:07:03

mostly just tedious work, but I think it's worth it

borkdude13:07:13

Made a POC for a babashka like thing for nodeJS: https://github.com/borkdude/tbd Very much a "toy" thing right now, but perhaps it could be useful ;)

🎉 11
Travis Jefferson15:07:29

Hey! small thing tripped me up today re: tasks invocation

{:paths ["src"]
 :tasks
 {task-as-sym {:requires ([the-ns.example])
               :task the-ns.example/run!}
  task-as-shell (shell "bb -m the-ns/example.run!")}}

Travis Jefferson15:07:10

it's a CLI-ish task, so I was tripped up by the fact that bb task-as-sym doesn't block and wait for input/completion, but bb task-as-shell does

Travis Jefferson15:07:26

I bet there's a reason for it, but I wanted to share my little experience hiccup

borkdude15:07:47

it depends what the-ns/example.run does

borkdude15:07:59

I see the problem

borkdude15:07:24

your task-as-sym should be task-as-sym the-ns.example/run!

borkdude15:07:28

no requires

borkdude15:07:47

if you write :task the-ns.example/run! it will just return the var

borkdude15:07:18

in that case you should write (apply the-ns.example/run! *command-line-args*) or so

Travis Jefferson15:07:32

you're exactly right

Travis Jefferson15:07:46

I was getting a ns-not-found error, so I added the require

Travis Jefferson15:07:09

but that was unrelated! (clojure n00b snake_case + kebab-case mixup)

Travis Jefferson15:07:37

thanks for explaining 🙌

👍 2