mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 08:16:13 +03:00
cli: list-keybinds uses new config formatting API
This commit is contained in:
@ -4,7 +4,8 @@ const args = @import("args.zig");
|
|||||||
const Action = @import("action.zig").Action;
|
const Action = @import("action.zig").Action;
|
||||||
const Arena = std.heap.ArenaAllocator;
|
const Arena = std.heap.ArenaAllocator;
|
||||||
const Allocator = std.mem.Allocator;
|
const Allocator = std.mem.Allocator;
|
||||||
const Config = @import("../config/Config.zig");
|
const configpkg = @import("../config.zig");
|
||||||
|
const Config = configpkg.Config;
|
||||||
|
|
||||||
pub const Options = struct {
|
pub const Options = struct {
|
||||||
/// If true, print out the default keybinds instead of the ones
|
/// If true, print out the default keybinds instead of the ones
|
||||||
@ -46,7 +47,7 @@ pub fn run(alloc: Allocator) !u8 {
|
|||||||
defer config.deinit();
|
defer config.deinit();
|
||||||
|
|
||||||
const stdout = std.io.getStdOut().writer();
|
const stdout = std.io.getStdOut().writer();
|
||||||
try config.keybind.formatConfig(stdout, "keybind=");
|
try config.keybind.formatEntry(configpkg.entryFormatter("keybind", stdout));
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user