Skip to content

Commit

Permalink
session/command.go: Hide commands with 0 runnables, fixes #815 (#816)
Browse files Browse the repository at this point in the history
  • Loading branch information
Flonja authored Nov 2, 2023
1 parent 4553404 commit ea883d6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/session/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ func (s *Session) sendAvailableCommands() map[string]map[int]cmd.Runnable {
}
if run := c.Runnables(s.c); len(run) > 0 {
m[alias] = run
} else {
continue
}

params := c.Params(s.c)
Expand Down

0 comments on commit ea883d6

Please sign in to comment.