Is there really not a way to delete a file with joker?
There also isn't a way to move files
And copy them
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
The only downside of sh is if you want a script that works on windows, linux and mac with the same code base.
That and it's somewhat slower, plus you have less control over logging, error recovery, and such.
Adding support for some of these things is rather easy though. Just need a list.
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
I just did the os/sh thing.