Compare commits

..

2 Commits

Author SHA1 Message Date
419d8994ba
demo: update to use interfaces directly
This adds a group and saves some lines.
2023-09-10 14:54:41 -07:00
a8652f71c4
command: add commandGroup function
This just creates an empty command with an auto-assigned noop callback.
This is useful sugar for creating a group of commands under a common
name because previously the user would have to define their own noop
callback and bind it. This just takes a description string
(and, optionally, a help flag override).
2023-09-10 14:52:49 -07:00

View File

@ -7,5 +7,4 @@ pub const parameters = @import("./parameters.zig");
pub const parser = @import("./parser.zig");
pub const CommandBuilder = command.CommandBuilder;
pub const commandGroup = command.commandGroup;
pub const ParserInterface = parser.ParserInterface;