Something went wrong. Try again.
Dev fork of jetzig jetzig.dev
Something went wrong. Try again.
123456789101112131415161718192021222324252627const std = @import("std");const args = @import("args");const version = @import("version");
/// Command line options for the `version` command.pub const Options = struct { pub const meta = .{ .usage_summary = "", .full_text = "Print Jetzig version.", };};
/// Run the `jetzig version` command.pub fn run( _: std.mem.Allocator, _: Options, writer: anytype, T: type, main_options: T,) !void { if (main_options.options.help) { try args.printHelp(Options, "jetzig version", writer); return; } std.debug.print("{s}+{s}\n", .{ version.version, version.commit_hash });}