Beispiel #1
0
        private void writePreview(Action <TemplateRequest> configure = null)
        {
            if (configure != null)
            {
                configure(theRequest);
            }

            thePlan = new TemplatePlanBuilder(library).BuildPlan(theRequest);


            thePlan.WritePreview();
        }
Beispiel #2
0
        private static void executePlan(NewCommandInput input, TemplatePlan plan, TemplateRequest request)
        {
            if (input.PreviewFlag)
            {
                Console.WriteLine("To solution directory " + input.SolutionDirectory());
                Console.WriteLine();

                plan.WritePreview();
            }
            else
            {
                prepareTargetDirectory(input, request);

                Templating.ExecutePlan(plan);

                if (RemoteOperations.Enabled)
                {
                    var solutionPath = plan.SourceDirectory.AppendPath(request.SolutionName + ".sln");

                    Process.Start(solutionPath);
                }
            }
        }