mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-05-19 11:31:19 +00:00
add +show-config action to print out the config from the cli
This commit is contained in:
committed by
Mitchell Hashimoto
parent
8d95f514cc
commit
de428d9fe9
@@ -8,6 +8,7 @@ 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");
|
||||
const show_config = @import("show_config.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
|
||||
@@ -31,6 +32,9 @@ pub const Action = enum {
|
||||
/// List named RGB colors
|
||||
@"list-colors",
|
||||
|
||||
/// Dump the config to stdout
|
||||
@"show-config",
|
||||
|
||||
pub const Error = error{
|
||||
/// Multiple actions were detected. You can specify at most one
|
||||
/// action on the CLI otherwise the behavior desired is ambiguous.
|
||||
@@ -119,6 +123,7 @@ pub const Action = enum {
|
||||
.@"list-keybinds" => try list_keybinds.run(alloc),
|
||||
.@"list-themes" => try list_themes.run(alloc),
|
||||
.@"list-colors" => try list_colors.run(alloc),
|
||||
.@"show-config" => try show_config.run(alloc),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user