feat: add argument metadata to (most) commands that take parameters

This commit is contained in:
CJ van den Berg 2024-11-21 17:34:11 +01:00
parent ae91afe255
commit 150374afae
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
14 changed files with 85 additions and 78 deletions

View file

@ -27,7 +27,14 @@ const Vtable = struct {
const Metadata = struct {
description: []const u8 = &[_]u8{},
interactive: bool = true,
arguments: []const ArgumentType = &[_]ArgumentType{},
};
pub const ArgumentType = enum {
string,
integer,
float,
object,
};
pub fn Closure(comptime T: type) type {