feat: require metadata on all commands
This commit is contained in:
parent
d75dcd7b84
commit
a58ab986f1
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue