mirror of
https://github.com/bettercap/bettercap
synced 2025-08-13 02:06:57 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
d070445225
commit
058a6865ff
5 changed files with 50 additions and 36 deletions
13
vendor/github.com/evilsocket/islazy/log/level.go
generated
vendored
13
vendor/github.com/evilsocket/islazy/log/level.go
generated
vendored
|
@ -42,3 +42,16 @@ var (
|
|||
FATAL: tui.FOREWHITE + tui.BACKRED + tui.BOLD,
|
||||
}
|
||||
)
|
||||
|
||||
// LevelName returns the name of a verbosity level.
|
||||
func LevelName(v Verbosity) string {
|
||||
return LevelNames[v]
|
||||
}
|
||||
|
||||
// LevelColor returns the color of a verbosity level or "" if effects are disabled.
|
||||
func LevelColor(v Verbosity) string {
|
||||
if NoEffects {
|
||||
return ""
|
||||
}
|
||||
return LevelColors[v]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue