13 references to WithOption
Microsoft.TemplateEngine.Cli (13)
Commands\BaseCommand.cs (1)
142
newCommandExample = 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)
162
example = example.
WithOption
(_ => language.Option, language.GetValueOrDefault<string>());
Commands\create\TemplateCommand.cs (1)
258
reporter.WriteCommand(Example.FromExistingTokens<TemplateCommand>(templateArgs.ParseResult).
WithOption
(c => c.ForceOption));
TemplateInvoker.cs (2)
242
Reporter.Output.WriteCommand(Example.For<NewCommand>(templateArgs.ParseResult).
WithOption
(c => c.Definition.DebugRebuildCacheOption));
294
Reporter.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#"));