MCPcopy
hub / github.com/spicetify/cli / Clear

Function Clear

src/cmd/backup.go:104–113  ·  view source on GitHub ↗

Clear clears current backup. Before clearing, it checks whether Spotify is in valid state to backup again.

()

Source from the content-addressed store, hash-verified

102// Clear clears current backup. Before clearing, it checks whether Spotify is in
103// valid state to backup again.
104func Clear() {
105 spotStat := spotifystatus.Get(appPath)
106
107 if !spotStat.IsBackupable() {
108 utils.PrintWarning("Before clearing backup, please restore or re-install Spotify to stock state")
109 os.Exit(1)
110 }
111
112 clearBackup()
113}
114
115func clearBackup() {
116 spinner, _ := utils.Spinner.Start("Clearing current backup")

Callers 1

mainFunction · 0.92

Calls 3

PrintWarningFunction · 0.92
clearBackupFunction · 0.85
IsBackupableMethod · 0.65

Tested by

no test coverage detected