35 references to ParserFactory
Microsoft.TemplateEngine.Cli (5)
Commands\create\InstantiateCommand.cs (2)
443
System.CommandLine.Command parser =
ParserFactory
.CreateParser(command);
444
ParseResult parseResult = parser.Parse(args.RemainingArguments ?? Array.Empty<string>(),
ParserFactory
.ParserConfiguration);
Commands\create\InstantiateCommand.NoMatchHandling.cs (1)
186
ParseResult result =
ParserFactory
.CreateParser(reparseCommand).Parse(args.RemainingArguments ?? Array.Empty<string>());
Commands\create\InstantiateCommand.TabCompletion.cs (2)
63
System.CommandLine.Command parser =
ParserFactory
.CreateParser(command);
67
ParseResult parseResult = parser.Parse(context.CommandLineText,
ParserFactory
.ParserConfiguration);
Microsoft.TemplateEngine.Cli.UnitTests (30)
ParserTests\InstantiateTests.cs (17)
258
Command parser =
ParserFactory
.CreateParser(templateCommand);
259
ParseResult templateParseResult = parser.Parse(args.TokensToInvoke ?? Array.Empty<string>(),
ParserFactory
.ParserConfiguration);
320
Command parser =
ParserFactory
.CreateParser(myCommand);
321
ParseResult parseResult = parser.Parse($" new {command}",
ParserFactory
.ParserConfiguration);
324
Command templateCommandParser =
ParserFactory
.CreateParser(templateCommand);
325
ParseResult templateParseResult = templateCommandParser.Parse(args.RemainingArguments ?? Array.Empty<string>(),
ParserFactory
.ParserConfiguration);
367
Command parser =
ParserFactory
.CreateParser(templateCommand);
368
ParseResult templateParseResult = parser.Parse(args.RemainingArguments ?? Array.Empty<string>(),
ParserFactory
.ParserConfiguration);
411
Command parser =
ParserFactory
.CreateParser(templateCommand);
412
ParseResult templateParseResult = parser.Parse(args.RemainingArguments ?? Array.Empty<string>(),
ParserFactory
.ParserConfiguration);
482
Command parser =
ParserFactory
.CreateParser(templateCommand);
522
Command parser =
ParserFactory
.CreateParser(myCommand);
527
Command templateCommandParser =
ParserFactory
.CreateParser(templateCommand);
528
ParseResult templateParseResult = templateCommandParser.Parse(args.RemainingArguments ?? Array.Empty<string>(),
ParserFactory
.ParserConfiguration);
551
Command parser =
ParserFactory
.CreateParser(templateCommand);
584
Command parser =
ParserFactory
.CreateParser(templateCommand);
748
Command parser =
ParserFactory
.CreateParser(templateCommand);
ParserTests\InstantiateTests.Subcommand.cs (10)
86
Command parser =
ParserFactory
.CreateParser(templateCommand);
87
ParseResult templateParseResult = parser.Parse(args.TokensToInvoke ?? Array.Empty<string>(),
ParserFactory
.ParserConfiguration);
149
Command parser =
ParserFactory
.CreateParser(templateCommand);
150
ParseResult templateParseResult = parser.Parse(args.RemainingArguments ?? Array.Empty<string>(),
ParserFactory
.ParserConfiguration);
184
Command parser =
ParserFactory
.CreateParser(templateCommand);
185
ParseResult templateParseResult = parser.Parse(args.RemainingArguments ?? Array.Empty<string>(),
ParserFactory
.ParserConfiguration);
227
Command parser =
ParserFactory
.CreateParser(templateCommand);
228
ParseResult templateParseResult = parser.Parse(args.RemainingArguments ?? Array.Empty<string>(),
ParserFactory
.ParserConfiguration);
261
Command parser =
ParserFactory
.CreateParser(templateCommand);
262
ParseResult templateParseResult = parser.Parse(args.RemainingArguments ?? Array.Empty<string>(),
ParserFactory
.ParserConfiguration);
ParserTests\MiscTests.cs (2)
79
ParseResult parseResult =
ParserFactory
.CreateParser(myCommand).Parse(command);
109
ParseResult parseResult =
ParserFactory
.CreateParser(myCommand).Parse(command);
ParserTests\TabCompletionTests.Approval.cs (1)
18
ParseResult parseResult =
ParserFactory
.CreateParser(myCommand).Parse("new ");