aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/libghostty-vt/src/build/mdgen/main_ghostty_5.zig
blob: 4f7c4882a4f2caa0d2f0317571bce53932f54537 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
const std = @import("std");
const gen = @import("mdgen.zig");

pub fn main(init: std.process.Init) !void {
    const alloc = init.arena.allocator();

    var buffer: [1024]u8 = undefined;
    var stdout_writer = std.Io.File.stdout().writer(init.io, &buffer);
    const writer = &stdout_writer.interface;
    try gen.substitute(alloc, @embedFile("ghostty_5_header.md"), writer);
    try gen.genConfig(writer, false);
    try gen.genKeybindActions(writer);
    try gen.substitute(alloc, @embedFile("ghostty_5_footer.md"), writer);
    try writer.flush();
}