|
1 | | -// <auto-generated /> |
| 1 | +// <auto-generated /> |
2 | 2 | // Generated by DotMake.CommandLine.SourceGeneration v1.8.5.0 |
3 | | -// Roslyn (Microsoft.CodeAnalysis) v4.900.24.8111 |
| 3 | +// Roslyn (Microsoft.CodeAnalysis) v4.900.24.12101 |
4 | 4 | // Generation: 1 |
5 | 5 |
|
6 | 6 | namespace TestApp.Commands.GeneratedCode |
@@ -151,27 +151,30 @@ public override System.CommandLine.CliCommand Build() |
151 | 151 | rootCommand.Add(child.Build()); |
152 | 152 | } |
153 | 153 |
|
154 | | - BindFunc = (parseResult) => |
| 154 | + BindFunc = (cliBindContext) => |
155 | 155 | { |
156 | 156 | var targetClass = CreateInstance(); |
157 | 157 |
|
158 | 158 | // Set the parsed or default values for the options |
159 | | - targetClass.Opt = GetValueForOption(parseResult, option0); |
160 | | - targetClass.OptArray = GetValueForOption(parseResult, option1); |
161 | | - targetClass.OptNullable = GetValueForOption(parseResult, option2); |
162 | | - targetClass.OptEnumerable = GetValueForOption(parseResult, option3); |
163 | | - targetClass.OptList = GetValueForOption(parseResult, option4); |
164 | | - targetClass.OptCustomList = GetValueForOption(parseResult, option5); |
| 159 | + targetClass.Opt = GetValueForOption(cliBindContext.ParseResult, option0); |
| 160 | + targetClass.OptArray = GetValueForOption(cliBindContext.ParseResult, option1); |
| 161 | + targetClass.OptNullable = GetValueForOption(cliBindContext.ParseResult, option2); |
| 162 | + targetClass.OptEnumerable = GetValueForOption(cliBindContext.ParseResult, option3); |
| 163 | + targetClass.OptList = GetValueForOption(cliBindContext.ParseResult, option4); |
| 164 | + targetClass.OptCustomList = GetValueForOption(cliBindContext.ParseResult, option5); |
165 | 165 |
|
166 | 166 | // Set the parsed or default values for the arguments |
167 | | - targetClass.Arg = GetValueForArgument(parseResult, argument0); |
| 167 | + targetClass.Arg = GetValueForArgument(cliBindContext.ParseResult, argument0); |
| 168 | + |
| 169 | + // Set the values for the parent command references |
168 | 170 |
|
169 | 171 | return targetClass; |
170 | 172 | }; |
171 | 173 |
|
172 | 174 | rootCommand.SetAction(parseResult => |
173 | 175 | { |
174 | | - var targetClass = (TestApp.Commands.ArgumentConverterCliCommand) BindFunc(parseResult); |
| 176 | + var cliBindContext = new DotMake.CommandLine.CliBindContext(parseResult); |
| 177 | + var targetClass = (TestApp.Commands.ArgumentConverterCliCommand) BindFunc(cliBindContext); |
175 | 178 |
|
176 | 179 | // Call the command handler |
177 | 180 | var cliContext = new DotMake.CommandLine.CliContext(parseResult); |
|
0 commit comments