| ... | @@ -59,8 +59,11 @@ pub fn execute(args: [][]u8) !void { | ... | @@ -59,8 +59,11 @@ pub fn execute(args: [][]u8) !void { |
| 59 | try tracking_list.append(item); | 59 | try tracking_list.append(item); |
| 60 | } | 60 | } |
| 61 | | 61 | |
| | 62 | var first = true; |
| 62 | var iter = map.iterator(); | 63 | var iter = map.iterator(); |
| 63 | while (iter.next()) |entry| { | 64 | while (iter.next()) |entry| { |
| | 65 | if (!first) std.debug.print("\n", .{}); |
| | 66 | first = false; |
| 64 | std.debug.print(style.Bold ++ "{s}:\n", .{entry.key_ptr.*}); | 67 | std.debug.print(style.Bold ++ "{s}:\n", .{entry.key_ptr.*}); |
| 65 | if (u.list_contains(licenses.spdx, entry.key_ptr.*)) { | 68 | if (u.list_contains(licenses.spdx, entry.key_ptr.*)) { |
| 66 | std.debug.print(style.Faint ++ "= {s}{s}\n", .{ "https://spdx.org/licenses/", entry.key_ptr.* }); | 69 | std.debug.print(style.Faint ++ "= {s}{s}\n", .{ "https://spdx.org/licenses/", entry.key_ptr.* }); |
| ... | @@ -73,7 +76,6 @@ pub fn execute(args: [][]u8) !void { | ... | @@ -73,7 +76,6 @@ pub fn execute(args: [][]u8) !void { |
| 73 | std.debug.print("- {s} {s}\n", .{ @tagName(item.dep.?.type), item.dep.?.path }); | 76 | std.debug.print("- {s} {s}\n", .{ @tagName(item.dep.?.type), item.dep.?.path }); |
| 74 | } | 77 | } |
| 75 | } | 78 | } |
| 76 | std.debug.print("\n", .{}); | | |
| 77 | } | 79 | } |
| 78 | if (unspecified_list.items.len > 0) { | 80 | if (unspecified_list.items.len > 0) { |
| 79 | std.debug.print(style.Bold ++ "Unspecified:\n", .{}); | 81 | std.debug.print(style.Bold ++ "Unspecified:\n", .{}); |