fix(tui): help dialog sorting

This commit is contained in:
adamdottv
2025-06-18 14:06:20 -05:00
parent bd46cf0f86
commit 1d0bfc2b2a
3 changed files with 17 additions and 9 deletions

View File

@@ -15,7 +15,7 @@ type helpDialog struct {
width int
height int
modal *modal.Modal
commands commands.CommandRegistry
commands []commands.Command
}
func (h *helpDialog) Init() tea.Cmd {
@@ -80,7 +80,7 @@ type HelpDialog interface {
layout.Modal
}
func NewHelpDialog(commands commands.CommandRegistry) HelpDialog {
func NewHelpDialog(commands []commands.Command) HelpDialog {
return &helpDialog{
commands: commands,
modal: modal.New(),