Fork me on GitHub
#joker
<
2019-11-22
>
hlship21:11:45

Is there really not a way to delete a file with joker?

😲 1
jcburley21:11:04

Other than via joker.os/sh, apparently not! We should add one ASAP, though my gostd fork has go.std.os/Remove, if you're willing to be on the bleeding edge: https://burleyarch.com/joker/docs/amd64-linux/go.std.os.html#_functions

hlship21:11:06

I just did the os/sh thing.

👍 2
jcburley04:11:19

Now on master -- thanks, @U75LX44UA!

didibus15:11:55

There also isn't a way to move files

didibus15:11:06

And copy them

didibus15:11:37

But at the same time, sh can be used for so much. In that way, I think of joker more as a bash replacement. Since OS commands are handled through sh mostly

didibus15:11:21

The only downside of sh is if you want a script that works on windows, linux and mac with the same code base.

jcburley17:11:31

That and it's somewhat slower, plus you have less control over logging, error recovery, and such.

jcburley17:11:24

Adding support for some of these things is rather easy though. Just need a list.