refactor: port to writergate

This commit is contained in:
CJ van den Berg 2025-08-05 20:11:35 +02:00
parent dfd3c5d66e
commit e558502ea2
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
5 changed files with 70 additions and 44 deletions

View file

@ -10,7 +10,7 @@ const checkmark_width = if (builtin.os.tag != .windows) 2 else 3;
const success_mark = if (builtin.os.tag != .windows) "" else "[y]";
const fail_mark = if (builtin.os.tag != .windows) "" else "[n]";
pub fn list(allocator: std.mem.Allocator, writer: anytype, tty_config: std.io.tty.Config) !void {
pub fn list(allocator: std.mem.Allocator, writer: *std.io.Writer, tty_config: std.io.tty.Config) !void {
var max_language_len: usize = 0;
var max_langserver_len: usize = 0;
var max_formatter_len: usize = 0;