summaryrefslogtreecommitdiff
path: root/src/builtins_json.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/builtins_json.zig')
-rw-r--r--src/builtins_json.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/builtins_json.zig b/src/builtins_json.zig
index 3402b2ee..f5543dba 100644
--- a/src/builtins_json.zig
+++ b/src/builtins_json.zig
@@ -1,4 +1,4 @@
-//! Every builtin as JSON, for the docs' glossary (docs/typ/builtins-tty.json
+//! Every builtin as JSON, for the docs' glossary (docs/typ/builtins-tui.json
//! and builtins-gui.json, a build's list each; style.typ merges them):
//! the rows the `Help` builtin draws (pardes.builtin_rows: the leader path
//! and the other shortcuts) with what /commands says of each word (its doc
@@ -24,7 +24,7 @@ pub fn write(w: *std.Io.Writer) !void {
var len: usize = 0;
// This build's own frontend's words (a desktop build has the other's
// too, which a view of its kind takes: builtins.zig `here`).
- for (pardes.builtin_rows, 0..) |row, i| if (pardes.builtins.registry.hereFor(row.cmd, pardes.builtins.frontend, pardes.platform != .tty)) {
+ for (pardes.builtin_rows, 0..) |row, i| if (pardes.builtins.registry.hereFor(row.cmd, pardes.builtins.frontend, pardes.platform != .tui)) {
all[len] = .{ .name = @tagName(row.cmd), .row = i };
len += 1;
};
@@ -77,7 +77,7 @@ test "docs/typ/builtins-<platform>.json is what the registry says now" {
// Linux builds' lists
if (comptime @import("builtin").os.tag != .linux) return error.SkipZigTest;
const file = switch (pardes.platform) {
- .tty => "builtins-tty.json",
+ .tui => "builtins-tui.json",
.gui => "builtins-gui.json",
else => return error.SkipZigTest,
};