Replace _ with - as separator in commands

This commit is contained in:
Isaac Freund 2020-06-01 20:51:20 +02:00
parent c63420cf45
commit 631983b734
No known key found for this signature in database
GPG key ID: 86DED400DDFD7A11
2 changed files with 18 additions and 18 deletions

View file

@ -76,11 +76,11 @@ const LayoutName = struct {
// zig fmt: off // zig fmt: off
const layout_names = [_]LayoutName { const layout_names = [_]LayoutName {
.{ .name = "TopMaster", .layout = Layout.TopMaster, }, .{ .name = "top-master", .layout = Layout.TopMaster, },
.{ .name = "RightMaster", .layout = Layout.RightMaster, }, .{ .name = "right-master", .layout = Layout.RightMaster, },
.{ .name = "BottomMaster", .layout = Layout.BottomMaster, }, .{ .name = "bottom-master", .layout = Layout.BottomMaster, },
.{ .name = "LeftMaster", .layout = Layout.LeftMaster, }, .{ .name = "left-master", .layout = Layout.LeftMaster, },
.{ .name = "Full", .layout = Layout.Full, }, .{ .name = "full", .layout = Layout.Full, },
}; };
// zig fmt: on // zig fmt: on

View file

@ -65,24 +65,24 @@ const Definition = struct {
// zig fmt: off // zig fmt: off
const str_to_impl_fn = [_]Definition{ const str_to_impl_fn = [_]Definition{
.{ .name = "close", .impl = impl.close }, .{ .name = "close", .impl = impl.close },
.{ .name = "declare_mode", .impl = impl.declareMode}, .{ .name = "declare-mode", .impl = impl.declareMode},
.{ .name = "enter_mode", .impl = impl.enterMode }, .{ .name = "enter-mode", .impl = impl.enterMode },
.{ .name = "exit", .impl = impl.exit }, .{ .name = "exit", .impl = impl.exit },
.{ .name = "focus", .impl = impl.focus }, .{ .name = "focus", .impl = impl.focus },
.{ .name = "focus_all_tags", .impl = impl.focusAllTags }, .{ .name = "focus-all-tags", .impl = impl.focusAllTags },
.{ .name = "focus_output", .impl = impl.focusOutput }, .{ .name = "focus-output", .impl = impl.focusOutput },
.{ .name = "focus_tag", .impl = impl.focusTag }, .{ .name = "focus-tag", .impl = impl.focusTag },
.{ .name = "layout", .impl = impl.layout }, .{ .name = "layout", .impl = impl.layout },
.{ .name = "mod_master_count", .impl = impl.modMasterCount }, .{ .name = "mod-master-count", .impl = impl.modMasterCount },
.{ .name = "mod_master_factor", .impl = impl.modMasterFactor }, .{ .name = "mod-master-factor", .impl = impl.modMasterFactor },
.{ .name = "send_to_output", .impl = impl.sendToOutput }, .{ .name = "send-to-output", .impl = impl.sendToOutput },
.{ .name = "spawn", .impl = impl.spawn }, .{ .name = "spawn", .impl = impl.spawn },
.{ .name = "map", .impl = impl.map }, .{ .name = "map", .impl = impl.map },
.{ .name = "tag_view", .impl = impl.tagView }, .{ .name = "tag-view", .impl = impl.tagView },
.{ .name = "tag_view_all_tags", .impl = impl.tagViewAllTags }, .{ .name = "tag-view-all-tags", .impl = impl.tagViewAllTags },
.{ .name = "toggle_float", .impl = impl.toggleFloat }, .{ .name = "toggle-float", .impl = impl.toggleFloat },
.{ .name = "toggle_tag_focus", .impl = impl.toggleTagFocus }, .{ .name = "toggle-tag-focus", .impl = impl.toggleTagFocus },
.{ .name = "toggle_view_tag", .impl = impl.toggleViewTag }, .{ .name = "toggle-view-tag", .impl = impl.toggleViewTag },
.{ .name = "zoom", .impl = impl.zoom }, .{ .name = "zoom", .impl = impl.zoom },
}; };
// zig fmt: on // zig fmt: on