mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-24 04:36:10 +03:00
23 lines
961 B
Zig
23 lines
961 B
Zig
const std = @import("std");
|
|
const Allocator = std.mem.Allocator;
|
|
const builtin = @import("builtin");
|
|
const build_config = @import("../build_config.zig");
|
|
const xev = @import("xev");
|
|
const renderer = @import("../renderer.zig");
|
|
|
|
/// The `version` command is used to display information about Ghostty.
|
|
pub fn run(alloc: Allocator) !u8 {
|
|
_ = alloc;
|
|
|
|
const stdout = std.io.getStdOut().writer();
|
|
try stdout.print("Ghostty {s}\n\n", .{build_config.version_string});
|
|
try stdout.print("Build Config\n", .{});
|
|
try stdout.print(" - Zig version: {s}\n", .{builtin.zig_version_string});
|
|
try stdout.print(" - build mode : {}\n", .{builtin.mode});
|
|
try stdout.print(" - app runtime: {}\n", .{build_config.app_runtime});
|
|
try stdout.print(" - font engine: {}\n", .{build_config.font_backend});
|
|
try stdout.print(" - renderer : {}\n", .{renderer.Renderer});
|
|
try stdout.print(" - libxev : {}\n", .{xev.backend});
|
|
return 0;
|
|
}
|