private static void RunApplication() { InstallationManager = new InstallationManager(UrlToSite, Credentials, ProgramOptions.SharePointOnline, ProgramOptions.RootPath, ProgramOptions.IncrementalUpload); if (!Unmanaged) ShowStartScreenAndExecuteCommand(); else { var operation = InstallationManager.GetInstallationOperationFromInput(ProgramOptions.Operations); InstallationManager.InstallOperation(operation, ProgramOptions.SiteHierarchy); } }
private static void HandleCommandKeyPress(string input) { int inputNum; if (!int.TryParse(input, out inputNum)) { Console.WriteLine("Invalid input"); ShowStartScreenAndExecuteCommand(); } switch (inputNum) { case 1: { InstallationManager.SetupTaxonomy(); break; } case 2: { InstallationManager.UploadAndActivateSandboxSolution(); break; } case 3: { InstallationManager.CreateSiteColumnsAndContentTypes(); break; } case 4: { InstallationManager.ConfigureSites(); break; } case 5: { InstallationManager.ExportTaxonomyGroup(); break; } case 8: { InstallationManager.TeardownSites(); break; } case 9: { InstallationManager.DeleteAllSherpaSiteColumnsAndContentTypes(); break; } case 1337: { Console.WriteLine("(Hidden feature) Forcing recrawl of rootsite and all subsites"); InstallationManager.ForceReCrawl(); break; } case 0: { Environment.Exit(0); break; } default: { Console.WriteLine("Invalid input"); break; } } ShowStartScreenAndExecuteCommand(); }