Fork me on GitHub
#babashka
<
2021-07-21
>
bruno.bonacci08:07:36

Another great talk by @borkdude here is the recording of last night event, for those who missed it: Babashka tasks (by Michiel Borkent) https://www.youtube.com/watch?v=u5ECoR7KT1Y

3
📽️ 9
🚀 8
🙌 8
👍 4
bruno.bonacci08:07:11

Many thanks to @borkdude for the excellent work and the great talk!

borkdude09:07:43

Thanks for getting the talk out on Youtube so fast @bruno.bonacci!

Eugen15:07:29

is it possible to see some feedback when running long tasks - like downloading a big file over a slow connection -

bb lvg 
Downloading LVG
and it sits there for quite some time without any progress or visual / auditive?! feedback

Eugen15:07:19

hmm I think maybe :raw-args ["--progress-bar"] ?!

borkdude15:07:30

@eugen.stan yes, I would use that curl option :)

borkdude15:07:49

perhaps just shell out to curl yourself

borkdude15:07:05

(shell "curl ... --progress-bar")

👍 2
borkdude20:07:10

@corasaurus-hex I already spotted a few bugs in tools.build.process ;)

bubblebobble 2
Cora (she/her)20:07:39

they need an fs library 😉

borkdude20:07:12

you can use any library in combination with the tools.build stuff if the tools.build stuff doesn't suffice

borkdude20:07:18

including babashka.* ;)

borkdude20:07:42

I bet the tools.build file stuff also works in babashka

borkdude20:07:00

as long as the code doesn't depend on tools.deps.alpha itself it should be fine

Cora (she/her)21:07:56

user=> (fs/parent "/foo/bar/baz.html")
#object[sun.nio.fs.WindowsPath 0x18ac034a "\\foo\\bar"]

Cora (she/her)21:07:21

user=> (.toString (.getPath (FileSystems/getDefault) "/foo/bar/baz.html" (make-array String 0)))
"\\foo\\bar\\baz.html"

Cora (she/her)21:07:40

user=> (.toString (Paths/get "/foo/bar/baz.html" (make-array String 0)))
"\\foo\\bar\\baz.html"

Cora (she/her)21:07:48

disliking that it changes the file separator

Cora (she/her)22:07:19

it seems to be a known java thing