@@ -27,7 +27,7 @@ public static class Content
27
27
28
28
namespace {{Namespace}};
29
29
30
- public class {{Model.CommandTypeName}}Impl : CliCommand , ICommandImpl
30
+ public class {{Model.CommandTypeName}}Impl : Command , ICommandImpl
31
31
{
32
32
public string CommandName => nameof({{Model.CommandTypeName}}Impl);
33
33
{{- if (Model.ParentCommand | string.empty) }}
@@ -38,14 +38,14 @@ public class {{Model.CommandTypeName}}Impl : CliCommand, ICommandImpl
38
38
{{- $settingsProperties = Model.SettingsProperties | array.sort "Name" }}
39
39
// Options list
40
40
{{~ for $prop in $settingsProperties ~}}
41
- protected readonly CliOption <{{$prop.TypeName}}> {{$prop.Name}}Option;
41
+ protected readonly Option <{{$prop.TypeName}}> {{$prop.Name}}Option;
42
42
{{~ end ~}}
43
43
44
44
public {{Model.CommandTypeName}}Impl({{Model.CommandTypeName}} command)
45
45
: base("{{Model.CommandName}}", "{{Model.CommandDescription}}")
46
46
{
47
47
{{~ for $prop in $settingsProperties ~}}
48
- {{$prop.Name}}Option = new CliOption <{{$prop.TypeName}}>("{{$prop.OptionName}}", [{{$prop.Aliases}}])
48
+ {{$prop.Name}}Option = new Option <{{$prop.TypeName}}>("{{$prop.OptionName}}", [{{$prop.Aliases}}])
49
49
{
50
50
Required = {{$prop.Required}},
51
51
Description = "{{$prop.Description}}",
@@ -80,7 +80,7 @@ Task<int> Run(ParseResult parseResult, CancellationToken cancellationToken)
80
80
using {{InfraNamespaceName}};
81
81
namespace {{Namespace}};
82
82
83
- public class RootCommandImpl : CliRootCommand
83
+ public class RootCommandImpl : RootCommand
84
84
{
85
85
public RootCommandImpl(IEnumerable<ICommandImpl> commands)
86
86
{
@@ -94,12 +94,12 @@ private void AddCommand(ICommandImpl command, IDictionary<string, ICommandImpl>
94
94
{
95
95
if (!string.IsNullOrWhiteSpace(command.ParentCommandName))
96
96
{
97
- var parent = map[command.ParentCommandName] as CliCommand ;
98
- parent?.Add((CliCommand )command);
97
+ var parent = map[command.ParentCommandName] as Command ;
98
+ parent?.Add((Command )command);
99
99
}
100
100
else
101
101
{
102
- Add((CliCommand )command);
102
+ Add((Command )command);
103
103
}
104
104
}
105
105
}
0 commit comments