Open lukewilliamboswell opened 3 months ago
Can also replicate with e.g.
app [main] {
cli: platform "https://github.com/roc-lang/basic-cli/releases/download/0.12.0/Lb8EgiejTUzbggO2HVVuPJFkwvvsfW6LojkLR20kTVE.tar.br"
}
import cli.Stdout
import cli.Cmd
import cli.Task exposing [Task]
main =
Cmd.new "ls"
|> Cmd.output
|> Task.onErr! \CmdOutputError _ -> Task.err (Exit 1 "")
|> .stdout
|> Str.fromUtf8
|> Task.fromResult!
|> Stdout.write!