| ... | @@ -66,7 +66,11 @@ pub fn execute(args: [][]u8) !void { | ... | @@ -66,7 +66,11 @@ pub fn execute(args: [][]u8) !void { |
| 66 | } | 66 | } |
| 67 | std.debug.print(style.ResetIntensity, .{}); | 67 | std.debug.print(style.ResetIntensity, .{}); |
| 68 | for (entry.value_ptr.*.items) |item| { | 68 | for (entry.value_ptr.*.items) |item| { |
| 69 | std.debug.print("- {s}\n", .{if (!std.mem.eql(u8, item.clean_path, "../..")) item.clean_path else "This"}); | 69 | if (std.mem.eql(u8, item.clean_path, "../..")) { |
| | 70 | std.debug.print("- This\n", .{}); |
| | 71 | } else { |
| | 72 | std.debug.print("- {s} {s}\n", .{ @tagName(item.dep.?.type), item.dep.?.path }); |
| | 73 | } |
| 70 | } | 74 | } |
| 71 | std.debug.print("\n", .{}); | 75 | std.debug.print("\n", .{}); |
| 72 | } | 76 | } |
| ... | @@ -74,7 +78,11 @@ pub fn execute(args: [][]u8) !void { | ... | @@ -74,7 +78,11 @@ pub fn execute(args: [][]u8) !void { |
| 74 | std.debug.print(style.Bold ++ "Unspecified:\n", .{}); | 78 | std.debug.print(style.Bold ++ "Unspecified:\n", .{}); |
| 75 | std.debug.print(style.ResetIntensity, .{}); | 79 | std.debug.print(style.ResetIntensity, .{}); |
| 76 | for (unspecified_list.items) |item| { | 80 | for (unspecified_list.items) |item| { |
| 77 | std.debug.print("- {s}\n", .{if (!std.mem.eql(u8, item.clean_path, "../..")) item.clean_path else "This"}); | 81 | if (std.mem.eql(u8, item.clean_path, "../..")) { |
| | 82 | std.debug.print("- This\n", .{}); |
| | 83 | } else { |
| | 84 | std.debug.print("- {s} {s}\n", .{ @tagName(item.dep.?.type), item.dep.?.path }); |
| | 85 | } |
| 78 | } | 86 | } |
| 79 | } | 87 | } |
| 80 | } | 88 | } |