The `format` tool doesn't break up long lines. Is there an alternative?

Hi all,

The command crystal tool format doesn’t seem to break up long lines. Perhaps I’m spoiled with the Rust equivalent, but I would find such a feature highly desirable. Is there a formatter that does this?

With kind regards,

Could you give an example of what you mean: what format does vs. what you expect it to do?

Certainly. Take this line for example:

host, port, remote_user, private_key = pg.query_one(server_query, stale_server.server_id, as: {String, Int32, String, String})

It is 130 characters long. I would like the formatter to break up that long line:

host, port, remote_user, private_key = pg.query_one(
  server_query, 
  stale_server.server_id, 
  as: {String, Int32, String, String}
)