blake-mealey / mantle

An infrastructure-as-code and deployment tool for Roblox.
https://mantledeploy.vercel.app/
MIT License
85 stars 11 forks source link

Add `-quiet` flag to `mantle outputs` #200

Closed TreehouseFalcon closed 9 months ago

TreehouseFalcon commented 9 months ago

Describe your problem

I use Mantle in a runtime environment at startup and currently have to save resource outputs to a file (mantle outputs -o). This can be cumbersome and would be much easier and more efficient if we could pipe or read outputs instead of saving them to a file. I can't easily use mantle outputs because there's logging information printed at the beginning of the execution.

Describe the solution you'd like

Having a -quiet (-q) flag to turn off logging for successful operations would be nice.

blake-mealey commented 9 months ago

I agree this should be improved. I think rather than adding a quiet mode I would like to write the other text to stderr so that it doesn't affect the output. This aligns with standard best practice for CLIs.

blake-mealey commented 9 months ago

This has been fixed in v0.11.12