cmd

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2021 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppAllPath added in v0.9.1

func AppAllPath() (string, error)

AppAllPath returns paths of all apps

func AppPath added in v0.7.0

func AppPath(name string) (string, error)

AppPath return path of app directory

func Apply

func Apply()

Apply .

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

func ExtensionAllPath() (string, error)

ExtensionAllPath returns paths of all extension files

func ExtensionPath added in v0.7.0

func ExtensionPath(name string) (string, error)

ExtensionPath return path of extension file

func FetchLatestTag added in v1.1.0

func FetchLatestTag() (string, error)

func GetConfigPath

func GetConfigPath() string

GetConfigPath returns location of config file

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

func ReadAnswer(info string, defaultAnswer bool, quietModeAnswer bool) bool

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 RestartSpotify added in v0.4.0

func RestartSpotify(flags ...string)

RestartSpotify .

func Restore

func Restore()

Restore uses backup to revert every changes made by Spicetify.

func SetDevTool

func SetDevTool(enable bool)

SetDevTool enables/disables developer mode of Spotify client

func ThemeAllAssetsPath added in v0.9.1

func ThemeAllAssetsPath() (string, error)

ThemeAllAssetsPath returns paths of all theme's assets

func ThemeAssetPath added in v0.7.0

func ThemeAssetPath(kind string) (string, error)

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

func Upgrade added in v1.1.0

func Upgrade(currentVersion string)

func Watch

func Watch(liveUpdate bool)

Watch .

func WatchExtensions added in v0.3.0

func WatchExtensions(liveUpdate bool)

WatchExtensions .

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL