mirror of
https://github.com/aditya-K2/gspt.git
synced 2026-01-09 22:08:04 -05:00
Hide Cover art through config/commandline
Fixes #8 Also: https://github.com/aditya-K2/gspt/discussions/2#discussioncomment-5627650
This commit is contained in:
@@ -17,6 +17,7 @@ type ConfigS struct {
|
||||
AdditionalPaddingY int `mapstructure:"additional_padding_y"`
|
||||
ExtraImageWidthX float64 `mapstructure:"image_width_extra_x"`
|
||||
ExtraImageWidthY float64 `mapstructure:"image_width_extra_y"`
|
||||
HideImage bool `mapstructure:"hide_image"`
|
||||
}
|
||||
|
||||
func NewConfigS() *ConfigS {
|
||||
@@ -28,6 +29,7 @@ func NewConfigS() *ConfigS {
|
||||
CacheDir: utils.CheckDirectoryFmt(userCacheDir),
|
||||
RedrawInterval: 500,
|
||||
Colors: NewColors(),
|
||||
HideImage: false,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -6,6 +6,8 @@ import (
|
||||
|
||||
func parseFlags() {
|
||||
flag.StringVar(&ConfigPath, "c", ConfigPath,
|
||||
"Specify The Directory where to check for config.yml file.")
|
||||
"Specify The Directory to check for config.yml file.")
|
||||
flag.BoolVar(&Config.HideImage, "hide-image", Config.HideImage,
|
||||
"Do not display the cover art image.")
|
||||
flag.Parse()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user