RefreshExtensions pushes all extensions to Spotify
(list ...string)
| 172 | |
| 173 | // RefreshExtensions pushes all extensions to Spotify |
| 174 | func RefreshExtensions(list ...string) { |
| 175 | spinner, _ := utils.Spinner.Start("Refreshing extensions") |
| 176 | if len(list) == 0 { |
| 177 | list = featureSection.Key("extensions").Strings("|") |
| 178 | } |
| 179 | |
| 180 | if len(list) > 0 { |
| 181 | pushExtensions("", list...) |
| 182 | spinner.Success("Refreshed extensions") |
| 183 | } else { |
| 184 | spinner.Info("No extensions to update") |
| 185 | } |
| 186 | } |
| 187 | |
| 188 | // CheckStates examines both Backup and Spotify states to prompt informative |
| 189 | // instruction for users |
no test coverage detected