Fork me on GitHub
#babashka
<
2021-10-31
>
Benjamin12:10:31

bb.edn

{:tasks
 foo (shell  "ls" {:dir "target"})}
does :dir need to be an absolute path? Is there an idiomatic way to build it

Benjamin12:10:46

ls: cannot access '{:dir "target"}': No such file or directory

borkdude12:10:09

It does not need to be an absolute path. But you need to specify the map as the first argument in shell.

Benjamin12:10:35

🎉 thanks

Karol Wójcik21:10:14

How can I change a bb.edn file content with babashka programatically without removing the comments or messing indentation?

borkdude21:10:25

See e.g. https://github.com/babashka/neil for a babashka tool that uses this