mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-19 05:50:27 +00:00
Zig 0.15: webdata
This commit is contained in:
@@ -3,6 +3,8 @@ const help_strings = @import("help_strings");
|
||||
const helpgen_actions = @import("../../input/helpgen_actions.zig");
|
||||
|
||||
pub fn main() !void {
|
||||
const output = std.io.getStdOut().writer();
|
||||
try helpgen_actions.generate(output, .markdown, true, std.heap.page_allocator);
|
||||
var buffer: [2048]u8 = undefined;
|
||||
var stdout_writer = std.fs.File.stdout().writer(&buffer);
|
||||
const stdout = &stdout_writer.interface;
|
||||
try helpgen_actions.generate(stdout, .markdown, true, std.heap.page_allocator);
|
||||
}
|
||||
|
||||
@@ -3,14 +3,16 @@ const Action = @import("../../cli/ghostty.zig").Action;
|
||||
const help_strings = @import("help_strings");
|
||||
|
||||
pub fn main() !void {
|
||||
const output = std.io.getStdOut().writer();
|
||||
try genActions(output);
|
||||
var buffer: [2048]u8 = undefined;
|
||||
var stdout_writer = std.fs.File.stdout().writer(&buffer);
|
||||
const stdout = &stdout_writer.interface;
|
||||
try genActions(stdout);
|
||||
}
|
||||
|
||||
// Note: as a shortcut for defining inline editOnGithubLinks per cli action the user
|
||||
// is directed to the folder view on Github. This includes a README pointing them to
|
||||
// the files to edit.
|
||||
pub fn genActions(writer: anytype) !void {
|
||||
pub fn genActions(writer: *std.Io.Writer) !void {
|
||||
// Write the header
|
||||
try writer.writeAll(
|
||||
\\---
|
||||
|
||||
@@ -3,11 +3,13 @@ const Config = @import("../../config/Config.zig");
|
||||
const help_strings = @import("help_strings");
|
||||
|
||||
pub fn main() !void {
|
||||
const output = std.io.getStdOut().writer();
|
||||
try genConfig(output);
|
||||
var buffer: [2048]u8 = undefined;
|
||||
var stdout_writer = std.fs.File.stdout().writer(&buffer);
|
||||
const stdout = &stdout_writer.interface;
|
||||
try genConfig(stdout);
|
||||
}
|
||||
|
||||
pub fn genConfig(writer: anytype) !void {
|
||||
pub fn genConfig(writer: *std.Io.Writer) !void {
|
||||
// Write the header
|
||||
try writer.writeAll(
|
||||
\\---
|
||||
@@ -122,7 +124,7 @@ pub fn genConfig(writer: anytype) !void {
|
||||
}
|
||||
}
|
||||
|
||||
fn endBlock(writer: anytype, block: anytype) !void {
|
||||
fn endBlock(writer: *std.Io.Writer, block: anytype) !void {
|
||||
if (block) |v| switch (v) {
|
||||
.text => {},
|
||||
.code => try writer.writeAll("```\n"),
|
||||
|
||||
Reference in New Issue
Block a user