@@ -12,72 +12,72 @@ internal class VerifyCommand : ExecutableCommand<VerifyCommandArgs>
12
12
{
13
13
private const string CommandName = "verify" ;
14
14
15
- private readonly CliArgument < string > _templateNameArgument = new ( "template-short-name" )
15
+ private readonly Argument < string > _templateNameArgument = new ( "template-short-name" )
16
16
{
17
17
Description = LocalizableStrings . command_verify_help_templateName_description ,
18
18
// 0 for case where only path is specified
19
19
Arity = new ArgumentArity ( 1 , 1 )
20
20
} ;
21
21
22
- private readonly CliOption < string > _remainingArguments = new ( "--template-args" )
22
+ private readonly Option < string > _remainingArguments = new ( "--template-args" )
23
23
{
24
24
Description = "Template specific arguments - all joined into single enquoted string. Any needed quotations of actual arguments has to be escaped." ,
25
25
Arity = new ArgumentArity ( 0 , 1 )
26
26
} ;
27
27
28
- private readonly CliOption < string > _templatePathOption = new ( "--template-path" , "-p" )
28
+ private readonly Option < string > _templatePathOption = new ( "--template-path" , "-p" )
29
29
{
30
30
Description = LocalizableStrings . command_verify_help_templatePath_description ,
31
31
} ;
32
32
33
- private readonly CliOption < string > _templateOutputPathOption = new ( "--output" , "-o" )
33
+ private readonly Option < string > _templateOutputPathOption = new ( "--output" , "-o" )
34
34
{
35
35
Description = LocalizableStrings . command_verify_help_outputPath_description ,
36
36
} ;
37
37
38
- private readonly CliOption < string > _snapshotsDirectoryOption = new ( "--snapshots-directory" , "-d" )
38
+ private readonly Option < string > _snapshotsDirectoryOption = new ( "--snapshots-directory" , "-d" )
39
39
{
40
40
Description = LocalizableStrings . command_verify_help_snapshotsDirPath_description ,
41
41
} ;
42
42
43
- private readonly CliOption < string > _scenarioNameOption = new ( "--scenario-name" )
43
+ private readonly Option < string > _scenarioNameOption = new ( "--scenario-name" )
44
44
{
45
45
Description = LocalizableStrings . command_verify_help_scenarioName_description ,
46
46
} ;
47
47
48
- private readonly CliOption < bool > _disableDiffToolOption = new ( "--disable-diff-tool" )
48
+ private readonly Option < bool > _disableDiffToolOption = new ( "--disable-diff-tool" )
49
49
{
50
50
Description = LocalizableStrings . command_verify_help_disableDiffTool_description ,
51
51
} ;
52
52
53
- private readonly CliOption < bool > _disableDefaultExcludePatternsOption = new ( "--disable-default-exclude-patterns" )
53
+ private readonly Option < bool > _disableDefaultExcludePatternsOption = new ( "--disable-default-exclude-patterns" )
54
54
{
55
55
Description = LocalizableStrings . command_verify_help_disableDefaultExcludes_description ,
56
56
} ;
57
57
58
- private readonly CliOption < IEnumerable < string > > _excludePatternOption = new ( "--exclude-pattern" )
58
+ private readonly Option < IEnumerable < string > > _excludePatternOption = new ( "--exclude-pattern" )
59
59
{
60
60
Description = LocalizableStrings . command_verify_help_customExcludes_description ,
61
61
Arity = new ArgumentArity ( 0 , 999 )
62
62
} ;
63
63
64
- private readonly CliOption < IEnumerable < string > > _includePatternOption = new ( "--include-pattern" )
64
+ private readonly Option < IEnumerable < string > > _includePatternOption = new ( "--include-pattern" )
65
65
{
66
66
Description = LocalizableStrings . command_verify_help_customIncludes_description ,
67
67
Arity = new ArgumentArity ( 0 , 999 )
68
68
} ;
69
69
70
- private readonly CliOption < bool > _verifyCommandOutputOption = new ( "--verify-std" )
70
+ private readonly Option < bool > _verifyCommandOutputOption = new ( "--verify-std" )
71
71
{
72
72
Description = LocalizableStrings . command_verify_help_verifyOutputs_description ,
73
73
} ;
74
74
75
- private readonly CliOption < bool > _isCommandExpectedToFailOption = new ( "--fail-expected" )
75
+ private readonly Option < bool > _isCommandExpectedToFailOption = new ( "--fail-expected" )
76
76
{
77
77
Description = LocalizableStrings . command_verify_help_expectFailure_description ,
78
78
} ;
79
79
80
- private readonly CliOption < IEnumerable < UniqueForOption > > _uniqueForOption = new ( "--unique-for" )
80
+ private readonly Option < IEnumerable < UniqueForOption > > _uniqueForOption = new ( "--unique-for" )
81
81
{
82
82
Description = LocalizableStrings . command_verify_help_uniqueFor_description ,
83
83
Arity = new ArgumentArity ( 0 , 999 ) ,
@@ -171,9 +171,9 @@ await engine.Execute(
171
171
}
172
172
173
173
/// <summary>
174
- /// Case insensitive version for <see cref="CliOption {T}.AcceptOnlyFromAmong(string[])"/>.
174
+ /// Case insensitive version for <see cref="Option {T}.AcceptOnlyFromAmong(string[])"/>.
175
175
/// </summary>
176
- private static void FromAmongCaseInsensitive ( CliOption < IEnumerable < UniqueForOption > > option , string [ ] ? allowedValues = null , string ? allowedHiddenValue = null )
176
+ private static void FromAmongCaseInsensitive ( Option < IEnumerable < UniqueForOption > > option , string [ ] ? allowedValues = null , string ? allowedHiddenValue = null )
177
177
{
178
178
allowedValues ??= [ ] ;
179
179
option . Validators . Add ( optionResult => ValidateAllowedValues ( optionResult , allowedValues , allowedHiddenValue ) ) ;
0 commit comments