public void Run() { if (!isSetup) { isSetup = LoadBlocks(); } if (isSetup) { StepManager.Run(); } }
private static Solution HandleCustomSolution(IEnumerable<string> directories) { var stepManager = new StepManager(); var pathHelper = new PathHelper(directories.Select(Path.GetFullPath)); stepManager.AddStep(new UiStep(pathHelper)); stepManager.AddStep(new ProjectsListStep<ExtensionProject>("Choose extensions libraries:", pathHelper)); stepManager.AddStep(new PluginStep("Choose plugins:", pathHelper)); stepManager.AddStep(new ProjectsListStep<TestsProject>("Choose tests:", pathHelper)); stepManager.AddStep(new ProjectsListStep<UnknownProject>("Choose other projects:", pathHelper)); stepManager.Run(); return stepManager.IsCancelled ? null : SolutionGenerator.Generate(stepManager.GetStep<UiStep>().UIProject, stepManager.GetSteps<ProjectsListStep>().SelectMany(x => x.AdditionalProjects).Union(stepManager.GetStep<UiStep>().UIProject.GetAllReferences())); }