| ... | ... | @@ -47,7 +47,7 @@ pub fn execute(self_name: []const u8, args: [][:0]u8) !void { |
| 47 | 47 | std.debug.print("\n", .{}); |
| 48 | 48 | switch (ptype) { |
| 49 | 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 | 53 | std.debug.print("\n", .{}); |
| ... | ... | @@ -62,7 +62,7 @@ pub fn execute(self_name: []const u8, args: [][:0]u8) !void { |
| 62 | 62 | const w = file.writer(); |
| 63 | 63 | switch (ptype) { |
| 64 | 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 | 67 | std.debug.print("\n", .{}); |
| 68 | 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 | 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 | 184 | try w.print("id: {s}\n", .{id}); |
| 185 | 185 | try w.print("name: {s}\n", .{name}); |
| 186 | 186 | try w.print("main: {s}\n", .{entry}); |