aboutsummaryrefslogtreecommitdiff
path: root/vendor/libghostty-vt/src/helpgen.zig
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/libghostty-vt/src/helpgen.zig')
-rw-r--r--vendor/libghostty-vt/src/helpgen.zig8
1 files changed, 3 insertions, 5 deletions
diff --git a/vendor/libghostty-vt/src/helpgen.zig b/vendor/libghostty-vt/src/helpgen.zig
index 49b5f443..e12cbda0 100644
--- a/vendor/libghostty-vt/src/helpgen.zig
+++ b/vendor/libghostty-vt/src/helpgen.zig
@@ -7,12 +7,9 @@ const Config = @import("config/Config.zig");
const Action = @import("cli/ghostty.zig").Action;
const KeybindAction = @import("input/Binding.zig").Action;
-pub fn main() !void {
- var gpa = std.heap.GeneralPurposeAllocator(.{}){};
- const alloc = gpa.allocator();
-
+pub fn main(init: std.process.Init) !void {
var buf: [4096]u8 = undefined;
- var stdout = std.fs.File.stdout().writerStreaming(&buf);
+ var stdout = std.Io.File.stdout().writerStreaming(init.io, &buf);
const writer = &stdout.interface;
try writer.writeAll(
\\// THIS FILE IS AUTO GENERATED
@@ -20,6 +17,7 @@ pub fn main() !void {
\\
);
+ const alloc = init.arena.allocator();
try genConfig(alloc, writer);
try genActions(alloc, writer);
try genKeybindActions(alloc, writer);