Add 'nerd-icons' flag

This commit is contained in:
aditya-K2
2023-05-13 02:21:31 +05:30
parent c1fdb7b610
commit 8d79286eea
2 changed files with 6 additions and 0 deletions

View File

@@ -80,6 +80,9 @@ func ReadConfig() {
if Flags.RoundedCorners != false {
Config.RoundedCorners = Flags.RoundedCorners
}
if Flags.UseNerdIcons != false {
Config.UseNerdIcons = Flags.UseNerdIcons
}
}
useFlags()

View File

@@ -12,6 +12,7 @@ type Flag struct {
ConfigPath string
HideImage bool
RoundedCorners bool
UseNerdIcons bool
}
func parseFlags() {
@@ -21,5 +22,7 @@ func parseFlags() {
"Do not display the cover art image.")
flag.BoolVar(&Flags.RoundedCorners, "rounded-corners", Config.RoundedCorners,
"Enable Rounded Corners")
flag.BoolVar(&Flags.UseNerdIcons, "nerd-icons", Config.UseNerdIcons,
"Use Nerd Icons")
flag.Parse()
}