feat: add argument metadata to (most) commands that take parameters
This commit is contained in:
parent
ae91afe255
commit
150374afae
14 changed files with 85 additions and 78 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue