11using System ;
22using System . Collections . Generic ;
33using System . Linq ;
4- using CliFx . Generators . Binding ;
54using CliFx . Generators . Utils ;
65using CliFx . Generators . Utils . Extensions ;
76using Microsoft . CodeAnalysis ;
87
9- namespace CliFx . Generators ;
8+ namespace CliFx . Generators . Binding ;
109
11- public partial class Generator
10+ internal static class CommandDescriptor
1211{
1312 private static string EmitValidators (
1413 IReadOnlyList < INamedTypeSymbol > validatorTypes ,
@@ -394,7 +393,7 @@ DiagnosticReporter diagnostics
394393 false,
395394 {{ CSharp . Encode ( "Shows help text." ) }} ,
396395 new global::CliFx.Activation.BoolScalarInputConverter(),
397- global::System.Array.Empty<global::CliFx.Activation.InputValidator <bool>>()
396+ global::System.Array.Empty<global::CliFx.Activation.IInputValidator <bool>>()
398397 )
399398 """ ;
400399 }
@@ -465,7 +464,7 @@ DiagnosticReporter diagnostics
465464 false,
466465 {{ CSharp . Encode ( "Shows version information." ) }} ,
467466 new global::CliFx.Activation.BoolScalarInputConverter(),
468- global::System.Array.Empty<global::CliFx.Activation.InputValidator <bool>>()
467+ global::System.Array.Empty<global::CliFx.Activation.IInputValidator <bool>>()
469468 )
470469 """ ;
471470 }
@@ -492,10 +491,7 @@ DiagnosticReporter diagnostics
492491 ) ,
493492 } ;
494493
495- private static string EmitCommandDescriptor (
496- CommandSymbol command ,
497- DiagnosticReporter diagnostics
498- ) =>
494+ internal static string Emit ( CommandSymbol command , DiagnosticReporter diagnostics ) =>
499495 // lang=csharp
500496 $$ """
501497 // <auto-generated />
0 commit comments