cli/list-fonts: dumb implementation

This commit is contained in:
Mitchell Hashimoto
2023-09-23 22:59:22 -07:00
parent 9421bec3a1
commit 8214471e2c
3 changed files with 61 additions and 4 deletions

View File

@@ -49,10 +49,9 @@ pub const Action = enum {
/// Run the action. This returns the exit code to exit with.
pub fn run(self: Action, alloc: Allocator) !u8 {
_ = alloc;
return switch (self) {
.version => try version.run(),
.@"list-fonts" => try list_fonts.run(),
.@"list-fonts" => try list_fonts.run(alloc),
};
}
};