tynanbe / shellout

🐢 A Gleam library for cross-platform shell operations
Apache License 2.0
46 stars 1 forks source link

Consider removing functions unrelated to running command line programs #5

Open lpil opened 8 months ago

lpil commented 8 months ago

Hello!

This library has some seemingly unrelated functions also exported. This made it harder for me to understand how to use this library, and I don't think folks will be adding this library for ansi colour codes.

I think it'd be good to focus this library on running commands and not having these other features.

Thanks, Louis

tynanbe commented 8 months ago

I agree.

When I get some time and motivation, I'd like to have a builder API with inspiration from Rust's std::process::Command and Deno's Deno.Command, e.g. with functions to add one or more args, set options for capturing stdout/stderr, and get various types of return information (including a simple success bool, status codes, and a full record of data).