Documentation
¶
Index ¶
- func AppAllPath() (string, error)
- func AppPath(name string) (string, error)
- func Apply()
- func Auto()
- func Backup()
- func CheckUpgrade(version string)
- func Clear()
- func DisplayAllConfig()
- func DisplayColors()
- func DisplayConfig(field string)
- func EditColor(args []string)
- func EditConfig(args []string)
- func ExtensionAllPath() (string, error)
- func ExtensionPath(name string) (string, error)
- func FetchLatestTag() (string, error)
- func GetConfigPath() string
- func GetSpotifyPath() string
- func InitConfig(isQuiet bool)
- func InitPaths()
- func InitSetting()
- func ReadAnswer(info string, defaultAnswer bool, quietModeAnswer bool) bool
- func RestartSpotify(flags ...string)
- func Restore()
- func SetDevTool(enable bool)
- func ThemeAllAssetsPath() (string, error)
- func ThemeAssetPath(kind string) (string, error)
- func UpdateAllExtension()
- func UpdateTheme()
- func Upgrade(currentVersion string)
- func Watch(liveUpdate bool)
- func WatchExtensions(liveUpdate bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppAllPath ¶ added in v0.9.1
AppAllPath returns paths of all apps
func Auto ¶ added in v0.9.5
func Auto()
Auto checks Spotify state, re-backup and apply if needed, then launch Spotify client normally.
func Backup ¶
func Backup()
Backup stores original apps packages, extracts them and preprocesses extracted apps' assets
func CheckUpgrade ¶ added in v1.1.0
func CheckUpgrade(version string)
CheckUpgrade fetchs latest package version from Github API and inform user if there is new release
func Clear ¶ added in v0.6.0
func Clear()
Clear clears current backup. Before clearing, it checks whether Spotify is in valid state to backup again.
func DisplayAllConfig ¶ added in v0.9.1
func DisplayAllConfig()
DisplayAllConfig displays all configs in all sections
func DisplayColors ¶ added in v0.9.1
func DisplayColors()
DisplayColors prints out every color name, hex and rgb value.
func DisplayConfig ¶ added in v0.9.1
func DisplayConfig(field string)
DisplayConfig displays value of requested config field
func EditColor ¶ added in v0.6.0
func EditColor(args []string)
EditColor changes one or multiple colors' values
func EditConfig ¶ added in v0.6.0
func EditConfig(args []string)
EditConfig changes one or multiple config value
func ExtensionAllPath ¶ added in v0.9.1
ExtensionAllPath returns paths of all extension files
func ExtensionPath ¶ added in v0.7.0
ExtensionPath return path of extension file
func FetchLatestTag ¶ added in v1.1.0
func GetSpotifyPath ¶
func GetSpotifyPath() string
GetSpotifyPath returns location of Spotify client
func InitConfig ¶ added in v0.6.0
func InitConfig(isQuiet bool)
InitConfig gets and parses config file.
func InitPaths ¶ added in v0.6.0
func InitPaths()
InitPaths checks various essential paths' availablities, tries to auto-detect them and stops spicetify when any one of them is invalid.
func InitSetting ¶ added in v0.9.0
func InitSetting()
InitSetting parses theme settings and gets color section.
func ReadAnswer ¶ added in v0.6.0
ReadAnswer prints out a yes/no form with string from `info` and returns boolean value based on user input (y/Y or n/N) or return `defaultAnswer` if input is omitted. If input is neither of them, print form again. If app is in quiet mode, returns quietModeAnswer without promting.
func SetDevTool ¶
func SetDevTool(enable bool)
SetDevTool enables/disables developer mode of Spotify client
func ThemeAllAssetsPath ¶ added in v0.9.1
ThemeAllAssetsPath returns paths of all theme's assets
func ThemeAssetPath ¶ added in v0.7.0
ThemeAssetPath returns path of theme assets color.ini and user.css
func UpdateAllExtension ¶ added in v0.3.0
func UpdateAllExtension()
UpdateAllExtension pushs all extensions to Spotify
func UpdateTheme ¶ added in v0.8.0
func UpdateTheme()
UpdateTheme updates user.css and overwrites custom assets
Types ¶
This section is empty.