Esempio n. 1
0
 private static async void processApp(List <AppData> appList, bool quiet)
 {
     await Task.Run(() =>
     {
         AppHandler.Uninstall(appList, quiet);
     });
 }
Esempio n. 2
0
        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));
        }
Esempio n. 3
0
        private static void list(string[] args)
        {
            List <AppData> appList = AppHandler.ReadApps();

            outputAppData(appList, args);
        }