static int HideMain(Options opts)
{
var appsPresent = opts.ToRemove.AsEnumerable();
foreach (var key in GetUninstallBaseKeys())
{
appsPresent = key.HideApps(appsPresent);
if (appsPresent.Count() == 0)
return 0;
}
// Couldn't hide all the apps
string joined = string.Join(", ", appsPresent);
return RaiseError(Errors.RemoveFailed, $"Unable to hide these apps: {joined}");
}