mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 21:13:18 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
d7103a7907
commit
7f7e5a24f8
2 changed files with 78 additions and 71 deletions
|
@ -195,6 +195,9 @@ func (s *Session) aliasHandler(args []string, sess *Session) error {
|
|||
func (s *Session) addHandler(h CommandHandler, c *readline.PrefixCompleter) {
|
||||
h.Completer = c
|
||||
s.CoreHandlers = append(s.CoreHandlers, h)
|
||||
if len(h.Name) > s.HelpPadding {
|
||||
s.HelpPadding = len(h.Name)
|
||||
}
|
||||
}
|
||||
|
||||
func (s *Session) registerCoreHandlers() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue