| ... | @@ -47,7 +47,7 @@ pub fn execute(self_name: []const u8, args: [][:0]u8) !void { | ... | @@ -47,7 +47,7 @@ pub fn execute(self_name: []const u8, args: [][:0]u8) !void { |
| 47 | std.debug.print("\n", .{}); | 47 | std.debug.print("\n", .{}); |
| 48 | switch (ptype) { | 48 | switch (ptype) { |
| 49 | .exe => try writeExeManifest(stdout, id, name, license, description), | 49 | .exe => try writeExeManifest(stdout, id, name, license, description), |
| 50 | .lib => try writeLibManifest(stdout, id, name, entry.?, license, description), | 50 | .lib => try writeLibManifest(stdout, id, name, license, description, entry.?), |
| 51 | } | 51 | } |
| 52 | | 52 | |
| 53 | std.debug.print("\n", .{}); | 53 | std.debug.print("\n", .{}); |
| ... | @@ -62,7 +62,7 @@ pub fn execute(self_name: []const u8, args: [][:0]u8) !void { | ... | @@ -62,7 +62,7 @@ pub fn execute(self_name: []const u8, args: [][:0]u8) !void { |
| 62 | const w = file.writer(); | 62 | const w = file.writer(); |
| 63 | switch (ptype) { | 63 | switch (ptype) { |
| 64 | .exe => try writeExeManifest(w, id, name, license, description), | 64 | .exe => try writeExeManifest(w, id, name, license, description), |
| 65 | .lib => try writeLibManifest(w, id, name, entry.?, license, description), | 65 | .lib => try writeLibManifest(w, id, name, license, description, entry.?), |
| 66 | } | 66 | } |
| 67 | std.debug.print("\n", .{}); | 67 | std.debug.print("\n", .{}); |
| 68 | std.debug.print("Successfully initialized new package {s}!\n", .{name}); | 68 | std.debug.print("Successfully initialized new package {s}!\n", .{name}); |
| ... | @@ -180,7 +180,7 @@ pub fn writeExeManifest(w: std.fs.File.Writer, id: string, name: string, license | ... | @@ -180,7 +180,7 @@ pub fn writeExeManifest(w: std.fs.File.Writer, id: string, name: string, license |
| 180 | try w.writeAll("root_dependencies:\n"); | 180 | try w.writeAll("root_dependencies:\n"); |
| 181 | } | 181 | } |
| 182 | | 182 | |
| 183 | pub fn writeLibManifest(w: std.fs.File.Writer, id: string, name: string, entry: string, license: string, description: string) !void { | 183 | pub fn writeLibManifest(w: std.fs.File.Writer, id: string, name: string, license: string, description: string, entry: string) !void { |
| 184 | try w.print("id: {s}\n", .{id}); | 184 | try w.print("id: {s}\n", .{id}); |
| 185 | try w.print("name: {s}\n", .{name}); | 185 | try w.print("name: {s}\n", .{name}); |
| 186 | try w.print("main: {s}\n", .{entry}); | 186 | try w.print("main: {s}\n", .{entry}); |