Add "purge" argument to CLI Steam Sync, to remove all SRM changes from Steam.

This commit is contained in:
icenine451 2025-04-04 09:15:11 -04:00
parent 1176c15eca
commit 3614b5e32d

View file

@ -14,7 +14,7 @@ Arguments:
--configurator \t Starts the RetroDECK Configurator
--compress-one <file> \t Compresses target file to a compatible format
--compress-all <format> \t Compresses all supported games into a compatible format.\n\t\t\t\t\t\t Available formats are \"chd\", \"zip\", \"rvz\" and \"all\"
--steam-sync \t Run the Steam ROM Manager sync process to update all ES-DE favorites in Steam
--steam-sync [purge] \t Run the Steam ROM Manager sync process to update all ES-DE favorites in Steam. Add the \"purge\" argument to remove all Steam ROM Manager information from Steam.
--repair-paths \t Reconfigure broken folder locations in RetroDECK without a full reset
--reset <component> \t Reset RetroDECK or one or more component/emulator configurations to default values. WARNING: no confirmation prompt
--factory-reset \t Factory Reset, triggers the initial setup WARNING: no confirmation prompt
@ -189,7 +189,15 @@ while [[ $# -gt 0 ]]; do
exit 0
;;
--steam-sync)
steam_sync
if [[ -n "$2" ]]; then
if [[ "$2" == "purge" ]]; then
steam-rom-manager nuke
else
echo "Unknown argument \"$2\", please check the CLI help for more information."
fi
else
steam_sync
fi
exit 0
;;
--repair-paths)