mirror of
https://github.com/aditya-K2/gspt.git
synced 2026-01-09 13:58:05 -05:00
Add 'nerd-icons' flag
This commit is contained in:
@@ -80,6 +80,9 @@ func ReadConfig() {
|
||||
if Flags.RoundedCorners != false {
|
||||
Config.RoundedCorners = Flags.RoundedCorners
|
||||
}
|
||||
if Flags.UseNerdIcons != false {
|
||||
Config.UseNerdIcons = Flags.UseNerdIcons
|
||||
}
|
||||
}
|
||||
useFlags()
|
||||
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user