summaryrefslogtreecommitdiff
path: root/src/pardes.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-18 20:52:50 -0300
committerGabriel Schneider <[email protected]>2026-11-18 21:22:58 -0300
commita75956bb3443aa8aac778d2ff12c42f5ef99e0e9 (patch)
tree17547cbf6606c8bd05be313cd8f835cb85d13e57 /src/pardes.zig
parent5b33c88476054fffc1044fff0526f7f0b28563cf (diff)
downloadpardes-a75956bb3443aa8aac778d2ff12c42f5ef99e0e9.tar.gz
pardes-a75956bb3443aa8aac778d2ff12c42f5ef99e0e9.zip
runtime: main, daemon, upgrade, crash, addon_test, 9p_io, 9p and macos.zig into runtime/ (the reorganisation's tree, step 2a), skill.txt with main.zig, its one reader: module `runtime` (runtime/root.zig) and the core, each naming the other, a product's root (main.zig, macos.zig) a module of its own over both; the files name across by module (`@import("runtime").daemon`, `@import("core").look`), pardes.zig exporting what they name (ctl, edit_cmd, tracy, selection_pipe, and the frontends until they move); core-test and shell-test run each module's test program, so the same tests run (the ledger: every named test of every suite the base's, tui and gui); nothing else changes: frames byte-identical, the same counts (tui core-test 822/963, the one more an anonymous collector)
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'src/pardes.zig')
-rw-r--r--src/pardes.zig18
1 files changed, 15 insertions, 3 deletions
diff --git a/src/pardes.zig b/src/pardes.zig
index 0bedab03..061c0efc 100644
--- a/src/pardes.zig
+++ b/src/pardes.zig
@@ -12,7 +12,7 @@ pub const Plumb = @import("Plumb.zig");
pub const filesystem = @import("fs.zig");
pub const ctlfs = @import("ninep/tree.zig");
pub const syntax = @import("syntax.zig");
-const tracy = @import("tracy.zig");
+pub const tracy = @import("tracy.zig");
pub const panes = @import("panes.zig");
const locations = @import("locations.zig");
pub const tagline = @import("tagline.zig");
@@ -72,7 +72,7 @@ pub const builtins = @import("builtins.zig");
/// Every builtin as JSON, for the docs (tools/gen_builtins_json.zig).
pub const builtins_json = @import("builtins_json.zig");
const limits = memory.limits;
-const selection_pipe = @import("selection_pipe.zig");
+pub const selection_pipe = @import("selection_pipe.zig");
pub const config = @import("config.zig");
pub const memory = @import("memory.zig");
pub const tape = @import("tape.zig");
@@ -88,6 +88,12 @@ pub const keys = @import("keys.zig");
pub const Addon = @import("Addon.zig");
pub const dump = @import("dump.zig");
pub const lsp = @import("lsp/lsp.zig");
+/// What the runtime's files name of the core beside the above (9p_io).
+pub const ctl = @import("ninep/ctl.zig");
+pub const edit_cmd = @import("edit_cmd.zig");
+/// The frontends, named by the product's root (runtime/main.zig).
+pub const tui = @import("tui/tui.zig");
+pub const gui = @import("gui/gui.zig");
pub const host_io = @import("host_io.zig");
pub const file_watch = @import("file_watch.zig");
pub const Host = host_io.Host;
@@ -425,7 +431,6 @@ test {
_ = @import("body_layer.zig");
_ = @import("draw.zig");
_ = @import("dump.zig"); // its tests ran nowhere before
- _ = @import("upgrade.zig");
_ = @import("recent.zig");
_ = @import("Store.zig");
_ = @import("Db.zig");
@@ -438,4 +443,11 @@ test {
_ = @import("Handover.zig");
_ = @import("walk.zig");
_ = @import("views.zig");
+ // The frontends', which main.zig's test block collected: a shell's
+ // build (shell-test); the core without a terminal never compiled them.
+ if (comptime @import("term_options").terminal) {
+ if (comptime platform == .tui) _ = @import("tui/tui.zig");
+ if (comptime platform == .gui) _ = @import("gui/gui.zig");
+ _ = @import("vaxis_input.zig");
+ }
}