libero/format
Run gleam format on generated Gleam code.
Writes code to a temp file, runs the formatter, reads back the result. Falls back to the original string if formatting fails.
Values
pub fn format_gleam(code: String) -> String
Format a string of Gleam code using gleam format.
Returns the formatted code, or the original if formatting fails.
nolint: thrown_away_error – intentional fallback: formatting is best-effort