From a58ab986f1d25dd0dcfad3d5231512b85868b2b5 Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Tue, 17 Sep 2024 22:58:53 +0200 Subject: [PATCH] feat: require metadata on all commands --- src/tui/command.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tui/command.zig b/src/tui/command.zig index 7b69697..0722914 100644 --- a/src/tui/command.zig +++ b/src/tui/command.zig @@ -179,7 +179,7 @@ fn getCommands(comptime Namespace: type) []const CmdDef(*getTargetType(Namespace .meta = if (@hasDecl(Namespace, decl.name ++ "_meta")) @field(Namespace, decl.name ++ "_meta") else - .{}, + @compileError(decl.name ++ " has no meta"), }; i += 1; }