| 365 | } |
| 366 | |
| 367 | func help() { |
| 368 | utils.PrintBold("spicetify v" + version) |
| 369 | log.Println(utils.Bold("USAGE") + "\n" + |
| 370 | "spicetify [-q] [-e] [-a] \x1B[4mcommand\033[0m...\n" + |
| 371 | "spicetify {-c | --config} | {-v | --version} | {-h | --help}\n\n" + |
| 372 | utils.Bold("DESCRIPTION") + "\n" + |
| 373 | "Customize Spotify client UI and functionality\n\n" + |
| 374 | utils.Bold("CHAINABLE COMMANDS") + ` |
| 375 | backup Start backup and preprocessing of app files. |
| 376 | |
| 377 | apply Apply customization. |
| 378 | |
| 379 | refresh Refresh the theme's CSS, JS, colors, and assets. |
| 380 | Use with flag "-e" to update extensions or with flag "-a" to update custom apps. |
| 381 | |
| 382 | restore Restore Spotify to original state. |
| 383 | |
| 384 | clear Clear current backup files. |
| 385 | |
| 386 | enable-devtools Enable Spotify's developer tools. |
| 387 | Press Ctrl + Shift + I (Windows/Linux) or Cmd + Option + I (macOS) in the Spotify client to open. |
| 388 | |
| 389 | watch Enter watch mode. |
| 390 | To update on change, use with any combination of the following flags: |
| 391 | "-e" (for extensions), |
| 392 | "-a" (for custom apps), |
| 393 | "-s" (for the active theme; color.ini, user.css, theme.js, and assets) |
| 394 | "-l" (for all of the above) |
| 395 | |
| 396 | |
| 397 | restart Restart Spotify client. |
| 398 | |
| 399 | ` + utils.Bold("NON-CHAINABLE COMMANDS") + ` |
| 400 | spotify-updates Block Spotify updates by patching spotify executable. |
| 401 | Accepts "block" or "unblock" as the parameter. |
| 402 | |
| 403 | path Print path of Spotify's executable, userdata, and more. |
| 404 | 1. Print executable path: |
| 405 | spicetify path |
| 406 | |
| 407 | 2. Print userdata path: |
| 408 | spicetify path userdata |
| 409 | |
| 410 | 3. Print all paths: |
| 411 | spicetify path all |
| 412 | |
| 413 | 4. Toggle focus with flags: |
| 414 | spicetify path <flag> <option> |
| 415 | |
| 416 | Available flags and options: |
| 417 | "-e" (for extensions), |
| 418 | options: root, extension name, blank for all. |
| 419 | |
| 420 | "-a" (for custom apps), |
| 421 | options: root, <app-name>, blank for all. |
| 422 | |
| 423 | "-s" (for the active theme) |
| 424 | options: root, folder, color, css, js, assets, blank for all. |