13 references to WithOption
Microsoft.TemplateEngine.Cli (13)
Commands\BaseCommand.cs (1)
142newCommandExample = newCommandExample.WithOption(additionalNewOptionSelector);
Commands\create\InstantiateCommand.Help.cs (2)
222.WithOption(c => c.Definition.LegacyOptions.FilterOptions.LanguageOption, supportedLanguages.First()) 257.WithOption(c => c.Definition.LegacyOptions.FilterOptions.TypeOption, supportedTypes.First())
Commands\create\InstantiateCommand.NoMatchHandling.cs (1)
162example = example.WithOption(_ => language.Option, language.GetValueOrDefault<string>());
Commands\create\TemplateCommand.cs (1)
258reporter.WriteCommand(Example.FromExistingTokens<TemplateCommand>(templateArgs.ParseResult).WithOption(c => c.ForceOption));
TemplateInvoker.cs (2)
242Reporter.Output.WriteCommand(Example.For<NewCommand>(templateArgs.ParseResult).WithOption(c => c.Definition.DebugRebuildCacheOption)); 294Reporter.Error.WriteCommand(Example.FromExistingTokens<TemplateCommand>(templateArgs.ParseResult).WithOption(c => c.ForceOption));
TemplatePackageCoordinator.cs (1)
644.WithOption(c => c.Definition.ForceOption));
TemplatePackageDisplay.cs (3)
161_reporterError.WriteCommand(Example.For<InstallCommand>(parseResult).WithArguments(packageToInstall).WithOption(c => c.Definition.ForceOption)); 190_reporterError.WriteCommand(Example.For<InstallCommand>(parseResult).WithArguments(packageToInstall).WithOption(c => c.Definition.ForceOption)); 203_reporterError.WriteCommand(Example.For<InstallCommand>(parseResult).WithArguments(packageToInstall).WithOption(c => c.Definition.ForceOption));
TemplateSearch\CliTemplateSearchCoordinator.cs (2)
269.WithOption(c => c.Definition.FilterOptions.AuthorOption, "Microsoft")); 276.WithOption(c => c.Definition.FilterOptions.LanguageOption, "C#"));