Add CLI interface

This commit is contained in:
Robin Voetter
2020-11-25 15:28:56 +01:00
parent bcaed6dbf2
commit b48fe074f5
4 changed files with 90 additions and 4 deletions

View File

@@ -75,6 +75,6 @@ pub const GenerateStep = struct {
try cwd.makePath(dir);
const output_file = cwd.createFile(self.package.path, .{}) catch unreachable;
defer output_file.close();
_ = try std.zig.render(self.builder.allocator, output_file.outStream(), tree);
_ = try std.zig.render(self.builder.allocator, output_file.writer(), tree);
}
};