@@ -40,7 +40,7 @@ public sealed partial record InstallCommand : DnvmSubCommand
4040 public bool ? Force { get ; init ; } = null ;
4141
4242 [ CommandOption ( "-s|--sdk-dir" , Description = "Install the SDK into a separate directory with the given name." ) ]
43- [ SerdeMemberOptions ( DeserializeProxy = typeof ( NullableRefProxy . Deserialize < SdkDirName , SdkDirNameProxy > ) ) ] // Treat as string
43+ [ SerdeMemberOptions ( DeserializeProxy = typeof ( NullableRefProxy . De < SdkDirName , SdkDirNameProxy > ) ) ] // Treat as string
4444 public SdkDirName ? SdkDir { get ; init ; } = null ;
4545
4646 [ CommandOption ( "-v|--verbose" , Description = "Print debugging messages to the console." ) ]
@@ -159,7 +159,7 @@ public sealed partial record UninstallCommand : DnvmSubCommand
159159 public required SemVersion SdkVersion { get ; init ; }
160160
161161 [ CommandOption ( "-s|--sdk-dir" , Description = "Uninstall the SDK from the given directory." ) ]
162- [ SerdeMemberOptions ( DeserializeProxy = typeof ( NullableRefProxy . Deserialize < SdkDirName , SdkDirNameProxy > ) ) ] // Treat as string
162+ [ SerdeMemberOptions ( DeserializeProxy = typeof ( NullableRefProxy . De < SdkDirName , SdkDirNameProxy > ) ) ] // Treat as string
163163 public SdkDirName ? SdkDir { get ; init ; } = null ;
164164 }
165165
@@ -185,8 +185,8 @@ public sealed partial record RestoreCommand : DnvmSubCommand
185185 /// </summary>
186186 private sealed class CaseInsensitiveChannel : IDeserializeProvider < Channel > , IDeserialize < Channel >
187187 {
188- public static ISerdeInfo SerdeInfo => Serde . SerdeInfo . MakePrimitive ( nameof ( Channel ) ) ;
189- static IDeserialize < Channel > IDeserializeProvider < Channel > . DeserializeInstance { get ; } = new CaseInsensitiveChannel ( ) ;
188+ public ISerdeInfo SerdeInfo => StringProxy . SerdeInfo ;
189+ static IDeserialize < Channel > IDeserializeProvider < Channel > . Instance { get ; } = new CaseInsensitiveChannel ( ) ;
190190 private CaseInsensitiveChannel ( ) { }
191191
192192 public Channel Deserialize ( IDeserializer deserializer )
@@ -326,7 +326,7 @@ public sealed record class CommandLineArguments(CommandArguments? Command)
326326 catch ( ArgumentSyntaxException ex )
327327 {
328328 console . WriteLine ( "error: " + ex . Message ) ;
329- console . WriteLine ( CmdLine . GetHelpText ( SerdeInfoProvider . GetInfo < DnvmCommand > ( ) , includeHelp : true ) ) ;
329+ console . WriteLine ( CmdLine . GetHelpText ( SerdeInfoProvider . GetDeserializeInfo < DnvmCommand > ( ) , includeHelp : true ) ) ;
330330 return null ;
331331 }
332332 }
@@ -344,7 +344,7 @@ public static CommandLineArguments ParseRaw(IAnsiConsole console, string[] args)
344344 dnvmCmd = value ;
345345 break ;
346346 case Result < DnvmCommand , IReadOnlyList < ISerdeInfo > > . Err ( var helpInfos ) :
347- var rootInfo = SerdeInfoProvider . GetInfo < DnvmCommand > ( ) ;
347+ var rootInfo = SerdeInfoProvider . GetDeserializeInfo < DnvmCommand > ( ) ;
348348 var lastInfo = helpInfos . Last ( ) ;
349349 console . WriteLine ( CmdLine . GetHelpText ( rootInfo , lastInfo , includeHelp : true ) ) ;
350350 return new CommandLineArguments ( Command : null ) ;
@@ -438,7 +438,7 @@ public static CommandLineArguments ParseRaw(IAnsiConsole console, string[] args)
438438 }
439439 case null :
440440 {
441- console . WriteLine ( CmdLine . GetHelpText ( SerdeInfoProvider . GetInfo < DnvmCommand > ( ) , includeHelp : true ) ) ;
441+ console . WriteLine ( CmdLine . GetHelpText ( SerdeInfoProvider . GetDeserializeInfo < DnvmCommand > ( ) , includeHelp : true ) ) ;
442442 return new CommandLineArguments ( Command : null ) ;
443443 }
444444 }
0 commit comments