rally/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
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.
pub fn format_gleam(code: String) -> String