summaryrefslogtreecommitdiff
path: root/src/builtins.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/builtins.zig')
-rw-r--r--src/builtins.zig13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/builtins.zig b/src/builtins.zig
index 4712a67a..15319d6e 100644
--- a/src/builtins.zig
+++ b/src/builtins.zig
@@ -108,7 +108,6 @@ fn isEnabled(comptime T: type) bool {
return !@hasDecl(T, "enabled") or T.enabled;
}
-
/// Why `word`, a builtin some build has, is none in this one: `GUI-only`
/// for the GUI's own (`gui_only`), else `not in this build`; null for a
/// word that is one here, or in no build.
@@ -1618,6 +1617,18 @@ pub const Messages = struct {
}
};
+/// This build: its version, commit, jj change and build time (a stamped
+/// build's: a release or the ~/.local install), the zig that built it, its
+/// optimize mode, target, platform, grammars, whether the addons are compiled
+/// in, and its dependencies, printed into an output buffer.
+pub const Build = struct {
+ pub const scope: Scope = .session;
+ pub const output: OutputTraits = .{ .name = config.build_buffer };
+ pub fn run(c: Ctx) void {
+ panes.Output.openBuild(c.p, c.id) catch |err| c.p.reportError(c.id, "build", err);
+ }
+};
+
/// This build's version and what changed to reach it, printed into an output
/// buffer the same way Config prints the live settings.
pub const Changelog = struct {