private static async void processApp(List <AppData> appList, bool quiet) { await Task.Run(() => { AppHandler.Uninstall(appList, quiet); }); }
private static List <AppData> getMatches(string[] args) { List <AppData> appMatches = new List <AppData>(); int index = getArgIndex("-terms:", args); if (index == -1 || args[index].Length < 8) { Console.WriteLine("ERROR: Search terms either missing or blank. Use -help for more information."); Console.WriteLine(""); return(new List <AppData>()); } string searchTermsArg = args[index].Substring(7); List <string> searchTerms = searchTermsArg.Split(new string[] { "::" }, StringSplitOptions.None).ToList(); return(AppHandler.FindMatches(searchTerms)); }
private static void list(string[] args) { List <AppData> appList = AppHandler.ReadApps(); outputAppData(appList, args); }