mirror of
https://github.com/anotherhadi/spilltea.git
synced 2026-05-20 01:32:33 +02:00
Init
Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
package icons
|
||||
|
||||
import "github.com/anotherhadi/spilltea/internal/config"
|
||||
|
||||
type Icons struct {
|
||||
Forward string
|
||||
Drop string
|
||||
Edit string
|
||||
Intercept string
|
||||
History string
|
||||
Replay string
|
||||
Diff string
|
||||
Request string
|
||||
Response string
|
||||
Plugin string
|
||||
Findings string
|
||||
Scope string
|
||||
Detail string
|
||||
Docs string
|
||||
New string
|
||||
Temp string
|
||||
Project string
|
||||
}
|
||||
|
||||
var I *Icons
|
||||
|
||||
func Init(cfg *config.Config) {
|
||||
if cfg.TUI.UseNerdfontIcons {
|
||||
I = &Icons{
|
||||
Forward: " ",
|
||||
Drop: " ",
|
||||
Edit: " ",
|
||||
Intercept: " ",
|
||||
History: " ",
|
||||
Replay: " ",
|
||||
Diff: " ",
|
||||
Request: " ",
|
||||
Response: " ",
|
||||
Plugin: " ",
|
||||
Findings: " ",
|
||||
Scope: " ",
|
||||
Detail: " ",
|
||||
Docs: " ",
|
||||
New: " ",
|
||||
Temp: " ",
|
||||
Project: " ",
|
||||
}
|
||||
} else {
|
||||
I = &Icons{}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user