diff options
| author | Mitchell Hashimoto <mitchell.hashimoto@gmail.com> | 2023-09-23 22:42:09 -0700 |
|---|---|---|
| committer | Mitchell Hashimoto <mitchell.hashimoto@gmail.com> | 2023-09-23 22:42:09 -0700 |
| commit | 7fc66f3851f947ef1e80655d4cb61129bcc553ff (patch) | |
| tree | 7a511d1d56504c666cd9285e5bf2856e702a4543 /src/cli/version.zig | |
| parent | 056de47b76b82c0296e0451bb18055f1b1d4ca1b (diff) | |
cli: dedicated directory
Diffstat (limited to 'src/cli/version.zig')
| -rw-r--r-- | src/cli/version.zig | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/cli/version.zig b/src/cli/version.zig new file mode 100644 index 000000000..b3395f4cd --- /dev/null +++ b/src/cli/version.zig @@ -0,0 +1,17 @@ +const std = @import("std"); +const builtin = @import("builtin"); +const build_config = @import("../build_config.zig"); +const xev = @import("xev"); +const renderer = @import("../renderer.zig"); + +pub fn run() !u8 { + 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(" - 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; +} |
