Add a deployment deleter prompt to `--purge` command
Closed this issue · 1 comments
As of now, the only thing the purge command can do is:
--purge cache
which deletes all downloaded deployment zips--purge installs
which deletes and uninstalls (removes configuration files and desktop references) all installed deployments
There was a --purge install
planned and it has been stubbed as [ x ] Not implemented yet!
when ran but it has been stuck like this for far too long and a downside I have realised is that people may accidentally mix up install
and installs
.
After thinking about it for a while, I came up with a interactive solution which makes the CLI experience a lot more user-friendly, ApplejuiceCLI would first index all of the valid installations in ~/.local/share/applejuice/roblox/*
and validating them with your configuration file (just in case there is a folder that hasn't been referenced in the config file, we don't want to make unwanted changes) afterwards, we pop up a menu like this:
Detected Player installations:
(1) [67eeb73fefa94b48] [299.7 MiB] [Thursday, 26 October 2023 11:05:28] [Custom FFlags]
(2) [67eeb73fefa94b48] [299.7 MiB] [Thursday, 26 October 2023 11:05:28]
Detected Studio installations:
(1) [67eeb73fefa94b48] [299.7 MiB] [Thursday, 26 October 2023 11:05:28] [Custom FFlags]
Which binary type do you want to uninstall, Player or Studio? (p/s) ______
......
Enter the number of the deployment you wish to uninstall: ______
Sorted from latest date installed to oldest date installed, with information like version hash, install size, install date and if any special changes has been detected like custom FastFlags which the user might want to keep.
This feature is no longer necessary as I'm removing the ability to install multiple instances due to the fact all deployment channels apart from LIVE
have been locked.