gleam-lang / gleam

⭐️ A friendly language for building type-safe, scalable systems!
https://gleam.run
Apache License 2.0
17.48k stars 726 forks source link

Option to suppress gleam cli's log messages #3309

Closed isaacthefallenapple closed 2 months ago

isaacthefallenapple commented 2 months ago

It's often useful to be able to pipe a programs standard output into another program. Unfortunately, the gleam run command prints its log messages (like Compiled in 0.2 seconds, Running program.main, etc.) to standard output unconditionally making this annoying, particularly because the number of lines of log messages vary depending on whether the build was cached or not.

This would be (I hope) easily fixed by adding a -q/--quiet option to the cli to suppress the log messages wholesale and/or print them to stderr (as is quite common in most build tools, I think) to allow the user to redirect them wherever.

lpil commented 2 months ago

Thank you.

Duplicate of https://github.com/gleam-lang/gleam/issues/2299