ls but with io_uring

fmt: user symlink_dir in short mode too

+4 -4
+4 -4
src/main.zig
··· 397 397 const opts = cmd.opts; 398 398 const colors = opts.colors; 399 399 if (opts.useIcons()) { 400 - const icon = Icon.get(entry, opts); 400 + const icon = Icon.get(entry); 401 401 402 402 if (opts.useColor()) { 403 403 try writer.writeAll(icon.color); ··· 538 538 } 539 539 540 540 if (cmd.opts.useIcons()) { 541 - const icon = Icon.get(entry, cmd.opts); 541 + const icon = Icon.get(entry); 542 542 543 543 if (cmd.opts.useColor()) { 544 544 try writer.writeAll(icon.color); ··· 1128 1128 .{ "zon", Icon.zig }, 1129 1129 }); 1130 1130 1131 - fn get(entry: Entry, opts: Options) Icon { 1131 + fn get(entry: Entry) Icon { 1132 1132 // 1. By name 1133 1133 // 2. By type 1134 1134 // 3. By extension ··· 1152 1152 }, 1153 1153 .named_pipe => return pipe, 1154 1154 .sym_link => { 1155 - if (opts.long and posix.S.ISDIR(entry.statx.mode)) { 1155 + if (posix.S.ISDIR(entry.statx.mode)) { 1156 1156 return symlink_dir; 1157 1157 } 1158 1158 return symlink;