mirror of
https://github.com/bettercap/bettercap
synced 2025-07-06 21:12:05 -07:00
refact: refactored to use islazy and updated deps
This commit is contained in:
parent
a2b3ee79fb
commit
d070445225
238 changed files with 12662 additions and 1586 deletions
|
@ -6,7 +6,7 @@ import (
|
|||
"regexp"
|
||||
"strconv"
|
||||
|
||||
"github.com/bettercap/bettercap/core"
|
||||
"github.com/evilsocket/islazy/tui"
|
||||
)
|
||||
|
||||
const IPv4Validator = `^(?:[0-9]{1,3}\.){3}[0-9]{1,3}$`
|
||||
|
@ -34,7 +34,7 @@ func NewModuleHandler(name string, expr string, desc string, exec func(args []st
|
|||
}
|
||||
|
||||
func (h *ModuleHandler) Help(padding int) string {
|
||||
return fmt.Sprintf(" "+core.Bold("%"+strconv.Itoa(padding)+"s")+" : %s\n", h.Name, h.Description)
|
||||
return fmt.Sprintf(" "+tui.Bold("%"+strconv.Itoa(padding)+"s")+" : %s\n", h.Name, h.Description)
|
||||
}
|
||||
|
||||
func (h *ModuleHandler) Parse(line string) (bool, []string) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue