Skip to content

Commit c7d0b80

Browse files
committed
Update TestApp/GeneratedFiles
1 parent 956c4fb commit c7d0b80

File tree

80 files changed

+1468
-538
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+1468
-538
lines changed

src/TestApp/GeneratedFiles/net472/DotMake.CommandLine.SourceGeneration/DotMake.CommandLine.SourceGeneration.CliCommandGenerator/(ModuleInitializerAttribute).g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// <auto-generated />
1+
// <auto-generated />
22
// 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
44
// Generation: 1
55

66
#if !NET5_0_OR_GREATER

src/TestApp/GeneratedFiles/net472/DotMake.CommandLine.SourceGeneration/DotMake.CommandLine.SourceGeneration.CliCommandGenerator/(RequiredMemberAttribute).g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// <auto-generated />
1+
// <auto-generated />
22
// 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
44
// Generation: 1
55

66
// Licensed to the .NET Foundation under one or more agreements.

src/TestApp/GeneratedFiles/net472/DotMake.CommandLine.SourceGeneration/DotMake.CommandLine.SourceGeneration.CliCommandGenerator/ArgumentConverterCliCommandBuilder-3j0trcm.g.cs

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// <auto-generated />
1+
// <auto-generated />
22
// 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
44
// Generation: 1
55

66
namespace TestApp.Commands.GeneratedCode
@@ -151,27 +151,30 @@ public override System.CommandLine.CliCommand Build()
151151
rootCommand.Add(child.Build());
152152
}
153153

154-
BindFunc = (parseResult) =>
154+
BindFunc = (cliBindContext) =>
155155
{
156156
var targetClass = CreateInstance();
157157

158158
// 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);
165165

166166
// 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
168170

169171
return targetClass;
170172
};
171173

172174
rootCommand.SetAction(parseResult =>
173175
{
174-
var targetClass = (TestApp.Commands.ArgumentConverterCliCommand) BindFunc(parseResult);
176+
var cliBindContext = new DotMake.CommandLine.CliBindContext(parseResult);
177+
var targetClass = (TestApp.Commands.ArgumentConverterCliCommand) BindFunc(cliBindContext);
175178

176179
// Call the command handler
177180
var cliContext = new DotMake.CommandLine.CliContext(parseResult);

src/TestApp/GeneratedFiles/net472/DotMake.CommandLine.SourceGeneration/DotMake.CommandLine.SourceGeneration.CliCommandGenerator/AsyncIntReturnCliCommandBuilder-dfvjszc.g.cs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// <auto-generated />
1+
// <auto-generated />
22
// 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
44
// Generation: 1
55

66
namespace TestApp.Commands.GeneratedCode
@@ -72,22 +72,25 @@ public override System.CommandLine.CliCommand Build()
7272
rootCommand.Add(child.Build());
7373
}
7474

75-
BindFunc = (parseResult) =>
75+
BindFunc = (cliBindContext) =>
7676
{
7777
var targetClass = CreateInstance();
7878

7979
// Set the parsed or default values for the options
80-
targetClass.Option1 = GetValueForOption(parseResult, option0);
80+
targetClass.Option1 = GetValueForOption(cliBindContext.ParseResult, option0);
8181

8282
// Set the parsed or default values for the arguments
83-
targetClass.Argument1 = GetValueForArgument(parseResult, argument0);
83+
targetClass.Argument1 = GetValueForArgument(cliBindContext.ParseResult, argument0);
84+
85+
// Set the values for the parent command references
8486

8587
return targetClass;
8688
};
8789

8890
rootCommand.SetAction(async (parseResult, cancellationToken) =>
8991
{
90-
var targetClass = (TestApp.Commands.AsyncIntReturnCliCommand) BindFunc(parseResult);
92+
var cliBindContext = new DotMake.CommandLine.CliBindContext(parseResult);
93+
var targetClass = (TestApp.Commands.AsyncIntReturnCliCommand) BindFunc(cliBindContext);
9194

9295
// Call the command handler
9396
var cliContext = new DotMake.CommandLine.CliContext(parseResult, cancellationToken);

src/TestApp/GeneratedFiles/net472/DotMake.CommandLine.SourceGeneration/DotMake.CommandLine.SourceGeneration.CliCommandGenerator/AsyncVoidReturnCliCommandBuilder-am9ksrw.g.cs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// <auto-generated />
1+
// <auto-generated />
22
// 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
44
// Generation: 1
55

66
namespace TestApp.Commands.GeneratedCode
@@ -72,22 +72,25 @@ public override System.CommandLine.CliCommand Build()
7272
rootCommand.Add(child.Build());
7373
}
7474

75-
BindFunc = (parseResult) =>
75+
BindFunc = (cliBindContext) =>
7676
{
7777
var targetClass = CreateInstance();
7878

7979
// Set the parsed or default values for the options
80-
targetClass.Option1 = GetValueForOption(parseResult, option0);
80+
targetClass.Option1 = GetValueForOption(cliBindContext.ParseResult, option0);
8181

8282
// Set the parsed or default values for the arguments
83-
targetClass.Argument1 = GetValueForArgument(parseResult, argument0);
83+
targetClass.Argument1 = GetValueForArgument(cliBindContext.ParseResult, argument0);
84+
85+
// Set the values for the parent command references
8486

8587
return targetClass;
8688
};
8789

8890
rootCommand.SetAction(async (parseResult, cancellationToken) =>
8991
{
90-
var targetClass = (TestApp.Commands.AsyncVoidReturnCliCommand) BindFunc(parseResult);
92+
var cliBindContext = new DotMake.CommandLine.CliBindContext(parseResult);
93+
var targetClass = (TestApp.Commands.AsyncVoidReturnCliCommand) BindFunc(cliBindContext);
9194

9295
// Call the command handler
9396
var cliContext = new DotMake.CommandLine.CliContext(parseResult, cancellationToken);

src/TestApp/GeneratedFiles/net472/DotMake.CommandLine.SourceGeneration/DotMake.CommandLine.SourceGeneration.CliCommandGenerator/CamelCaseCliCommandBuilder-2ntm48g.g.cs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// <auto-generated />
1+
// <auto-generated />
22
// 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
44
// Generation: 1
55

66
namespace TestApp.Commands.CasingConvention.GeneratedCode
@@ -72,22 +72,25 @@ public override System.CommandLine.CliCommand Build()
7272
rootCommand.Add(child.Build());
7373
}
7474

75-
BindFunc = (parseResult) =>
75+
BindFunc = (cliBindContext) =>
7676
{
7777
var targetClass = CreateInstance();
7878

7979
// Set the parsed or default values for the options
80-
targetClass.Option1 = GetValueForOption(parseResult, option0);
80+
targetClass.Option1 = GetValueForOption(cliBindContext.ParseResult, option0);
8181

8282
// Set the parsed or default values for the arguments
83-
targetClass.Argument1 = GetValueForArgument(parseResult, argument0);
83+
targetClass.Argument1 = GetValueForArgument(cliBindContext.ParseResult, argument0);
84+
85+
// Set the values for the parent command references
8486

8587
return targetClass;
8688
};
8789

8890
rootCommand.SetAction(parseResult =>
8991
{
90-
var targetClass = (TestApp.Commands.CasingConvention.CamelCaseCliCommand) BindFunc(parseResult);
92+
var cliBindContext = new DotMake.CommandLine.CliBindContext(parseResult);
93+
var targetClass = (TestApp.Commands.CasingConvention.CamelCaseCliCommand) BindFunc(cliBindContext);
9194

9295
// Call the command handler
9396
var cliContext = new DotMake.CommandLine.CliContext(parseResult);

src/TestApp/GeneratedFiles/net472/DotMake.CommandLine.SourceGeneration/DotMake.CommandLine.SourceGeneration.CliCommandGenerator/CliCommandAsDelegate_4yk4pbm.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// <auto-generated />
1+
// <auto-generated />
22
// 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
44
// Generation: 1
55

66
namespace GeneratedCode

src/TestApp/GeneratedFiles/net472/DotMake.CommandLine.SourceGeneration/DotMake.CommandLine.SourceGeneration.CliCommandGenerator/CliCommandAsDelegate_4yk4pbmBuilder-fgjtvar.g.cs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// <auto-generated />
1+
// <auto-generated />
22
// 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
44
// Generation: 1
55

66
namespace GeneratedCode
@@ -69,22 +69,25 @@ public override System.CommandLine.CliCommand Build()
6969
rootCommand.Add(child.Build());
7070
}
7171

72-
BindFunc = (parseResult) =>
72+
BindFunc = (cliBindContext) =>
7373
{
7474
var targetClass = CreateInstance();
7575

7676
// Set the parsed or default values for the options
77-
targetClass.option2 = GetValueForOption(parseResult, option0);
77+
targetClass.option2 = GetValueForOption(cliBindContext.ParseResult, option0);
7878

7979
// Set the parsed or default values for the arguments
80-
targetClass.argument2 = GetValueForArgument(parseResult, argument0);
80+
targetClass.argument2 = GetValueForArgument(cliBindContext.ParseResult, argument0);
81+
82+
// Set the values for the parent command references
8183

8284
return targetClass;
8385
};
8486

8587
rootCommand.SetAction(parseResult =>
8688
{
87-
var targetClass = (GeneratedCode.CliCommandAsDelegate_4yk4pbm) BindFunc(parseResult);
89+
var cliBindContext = new DotMake.CommandLine.CliBindContext(parseResult);
90+
var targetClass = (GeneratedCode.CliCommandAsDelegate_4yk4pbm) BindFunc(cliBindContext);
8891

8992
// Call the command handler
9093
var cliContext = new DotMake.CommandLine.CliContext(parseResult);

src/TestApp/GeneratedFiles/net472/DotMake.CommandLine.SourceGeneration/DotMake.CommandLine.SourceGeneration.CliCommandGenerator/CliCommandAsDelegate_5v59h64.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// <auto-generated />
1+
// <auto-generated />
22
// 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
44
// Generation: 1
55

66
namespace GeneratedCode

src/TestApp/GeneratedFiles/net472/DotMake.CommandLine.SourceGeneration/DotMake.CommandLine.SourceGeneration.CliCommandGenerator/CliCommandAsDelegate_5v59h64Builder-7065v10.g.cs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// <auto-generated />
1+
// <auto-generated />
22
// 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
44
// Generation: 1
55

66
namespace GeneratedCode
@@ -69,22 +69,25 @@ public override System.CommandLine.CliCommand Build()
6969
rootCommand.Add(child.Build());
7070
}
7171

72-
BindFunc = (parseResult) =>
72+
BindFunc = (cliBindContext) =>
7373
{
7474
var targetClass = CreateInstance();
7575

7676
// Set the parsed or default values for the options
77-
targetClass.option1 = GetValueForOption(parseResult, option0);
77+
targetClass.option1 = GetValueForOption(cliBindContext.ParseResult, option0);
7878

7979
// Set the parsed or default values for the arguments
80-
targetClass.argument1 = GetValueForArgument(parseResult, argument0);
80+
targetClass.argument1 = GetValueForArgument(cliBindContext.ParseResult, argument0);
81+
82+
// Set the values for the parent command references
8183

8284
return targetClass;
8385
};
8486

8587
rootCommand.SetAction(parseResult =>
8688
{
87-
var targetClass = (GeneratedCode.CliCommandAsDelegate_5v59h64) BindFunc(parseResult);
89+
var cliBindContext = new DotMake.CommandLine.CliBindContext(parseResult);
90+
var targetClass = (GeneratedCode.CliCommandAsDelegate_5v59h64) BindFunc(cliBindContext);
8891

8992
// Call the command handler
9093
var cliContext = new DotMake.CommandLine.CliContext(parseResult);

0 commit comments

Comments
 (0)