fix: partially backport zig-0.14 command.Metadata change

This commit is contained in:
CJ van den Berg 2025-02-06 21:18:07 +01:00
parent c186264eac
commit 9c01402f15
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
2 changed files with 2 additions and 1 deletions

View file

@ -26,7 +26,7 @@ const Vtable = struct {
meta: Metadata,
};
const Metadata = struct {
pub const Metadata = struct {
description: []const u8 = &[_]u8{},
arguments: []const ArgumentType = &[_]ArgumentType{},
};

View file

@ -241,6 +241,7 @@ fn check_all_not_dirty(self: *const Self) command.Result {
const cmds = struct {
pub const Target = Self;
const Ctx = command.Context;
const Meta = command.Metadata;
const Result = command.Result;
pub fn quit(self: *Self, _: Ctx) Result {