authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-07-31 18:56:22 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-07-31 18:56:22 -07:00
log984b832113ea2d78587e4be0b427f5fe6db553a0
tree9a7cd8dd321474d0f054b8b7e03461a4c8463c3b
parent088b0ec9662184edc155298e8f899a33dfb42a93

cmd/init- make writemanifest functions public


1 files changed, 4 insertions(+), 4 deletions(-)

src/cmd/init.zig+4-4
......@@ -70,15 +70,15 @@ pub fn execute(args: [][]u8) !void {
7070 }
7171}
7272
73fn writeExeManifest(w: std.fs.File.Writer, id: []const u8, name: []const u8, license: []const u8, description: []const u8) !void {
73pub fn writeExeManifest(w: std.fs.File.Writer, id: []const u8, name: []const u8, license: ?[]const u8, description: ?[]const u8) !void {
7474 try w.print("id: {s}\n", .{id});
7575 try w.print("name: {s}\n", .{name});
76 try w.print("license: {s}\n", .{license});
77 try w.print("description: {s}\n", .{description});
76 if (license) |_| try w.print("license: {s}\n", .{license.?});
77 if (description) |_| try w.print("description: {s}\n", .{description.?});
7878 try w.print("dev_dependencies:\n", .{});
7979}
8080
81fn writeLibManifest(w: std.fs.File.Writer, id: []const u8, name: []const u8, entry: []const u8, license: []const u8, description: []const u8) !void {
81pub fn writeLibManifest(w: std.fs.File.Writer, id: []const u8, name: []const u8, entry: []const u8, license: []const u8, description: []const u8) !void {
8282 try w.print("id: {s}\n", .{id});
8383 try w.print("name: {s}\n", .{name});
8484 try w.print("main: {s}\n", .{entry});