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
|
|
@ -19,7 +19,7 @@ pub const Entry = struct {
|
|||
|
||||
pub fn load_entries(palette: *Type) !void {
|
||||
for (command.commands.items) |cmd_| if (cmd_) |p| {
|
||||
if (p.meta.interactive)
|
||||
if (p.meta.description.len > 0)
|
||||
(try palette.entries.addOne()).* = .{
|
||||
.label = if (p.meta.description.len > 0) p.meta.description else p.name,
|
||||
.name = p.name,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue