add ability to specify RGB colors as names from the X11 rgb name list

This commit is contained in:
Jeffrey C. Ollie
2024-01-10 16:35:26 -06:00
committed by Mitchell Hashimoto
parent c24d7d6de6
commit bc1544a3f0
7 changed files with 245 additions and 1 deletions

View File

@@ -5,6 +5,7 @@ const list_fonts = @import("list_fonts.zig");
const version = @import("version.zig");
const list_keybinds = @import("list_keybinds.zig");
const list_themes = @import("list_themes.zig");
const list_colors = @import("list_colors.zig");
/// Special commands that can be invoked via CLI flags. These are all
/// invoked by using `+<action>` as a CLI flag. The only exception is
@@ -22,6 +23,9 @@ pub const Action = enum {
/// List available themes
@"list-themes",
/// List named RGB colors
@"list-colors",
pub const Error = error{
/// Multiple actions were detected. You can specify at most one
/// action on the CLI otherwise the behavior desired is ambiguous.
@@ -62,6 +66,7 @@ pub const Action = enum {
.@"list-fonts" => try list_fonts.run(alloc),
.@"list-keybinds" => try list_keybinds.run(alloc),
.@"list-themes" => try list_themes.run(alloc),
.@"list-colors" => try list_colors.run(alloc),
};
}
};