feat: require metadata on all commands

This commit is contained in:
CJ van den Berg 2024-09-17 22:58:53 +02:00
parent d75dcd7b84
commit a58ab986f1
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -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;
}