diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-06 06:24:42 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-06 11:19:44 -0300 |
| commit | c1917b949b9580de8bf0977874a210f0266812da (patch) | |
| tree | 447dd2235ea00634f662cd3becf4bceb8a895f41 /test/process_test.zig | |
| parent | 76c55b5bce0f181b0b15b16596c900397dfef544 (diff) | |
| download | pardes-c1917b949b9580de8bf0977874a210f0266812da.tar.gz pardes-c1917b949b9580de8bf0977874a210f0266812da.zip | |
kinds #14, the core's PDF code gone: pdf.zig and pdf_view.zig leave and every pdf_enabled branch with them; look, Jump, Recent, dumps (one from before the addon opens as its pane), the watch, mouse, keys, the rail and the tag go through Kind for any kind's pane; test/pdf.zig's behaviours are T1 cases over 9P (addons_pdf.zig) and pane cases (a Shadow over a replica, a file changed under it), the harnesses load pdf.so by path
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'test/process_test.zig')
| -rw-r--r-- | test/process_test.zig | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/process_test.zig b/test/process_test.zig index 37dd0954..b1f64a45 100644 --- a/test/process_test.zig +++ b/test/process_test.zig @@ -22,14 +22,16 @@ const files = .{ pub fn main(init: std.process.Init) !void { const all = try init.minimal.args.toSlice(init.arena.allocator()); - // <pardes> [--backend=tui|gui] [--image-addon=<image.so>] [filter] + // <pardes> [--backend=tui|gui] [--addon=<lib>]... [filter] var args: [3][:0]const u8 = undefined; var n: usize = 0; for (all[1..]) |a| { if (std.mem.startsWith(u8, a, "--backend=")) { process.backend = std.meta.stringToEnum(process.Backend, a["--backend=".len..]) orelse return error.Usage; - } else if (std.mem.startsWith(u8, a, "--image-addon=")) { - process.image_addon = try std.Io.Dir.cwd().realPathFileAlloc(init.io, a["--image-addon=".len..], init.arena.allocator()); + } else if (std.mem.startsWith(u8, a, "--addon=")) { + if (process.naddons == process.addons.len) return error.Usage; + process.addons[process.naddons] = try std.Io.Dir.cwd().realPathFileAlloc(init.io, a["--addon=".len..], init.arena.allocator()); + process.naddons += 1; } else if (n < args.len) { args[n] = a; n += 1; |
