@@ -59,42 +59,42 @@ private static string GetSourceLinkVersion()
5959 return attribute . InformationalVersion . Split ( '+' ) . First ( ) ;
6060 }
6161
62- private static CliRootCommand GetRootCommand ( )
62+ private static RootCommand GetRootCommand ( )
6363 {
64- var pathArg = new CliArgument < string > ( "path" )
64+ var pathArg = new Argument < string > ( "path" )
6565 {
6666 Description = "Path to an assembly or .pdb"
6767 } ;
68- var authArg = new CliOption < string > ( "--auth" , "-a" )
68+ var authArg = new Option < string > ( "--auth" , "-a" )
6969 {
7070 Description = "Authentication method"
7171 } ;
7272 authArg . AcceptOnlyFromAmong ( AuthenticationMethod . Basic ) ;
7373
74- var authEncodingArg = new CliOption < Encoding > ( "--auth-encoding" , "-e" )
74+ var authEncodingArg = new Option < Encoding > ( "--auth-encoding" , "-e" )
7575 {
7676 CustomParser = arg => Encoding . GetEncoding ( arg . Tokens . Single ( ) . Value ) ,
7777 Description = "Encoding to use for authentication value"
7878 } ;
7979
80- var userArg = new CliOption < string > ( "--user" , "-u" )
80+ var userArg = new Option < string > ( "--user" , "-u" )
8181 {
8282 Description = "Username to use to authenticate" ,
8383 Arity = ArgumentArity . ExactlyOne
8484 } ;
8585
86- var passwordArg = new CliOption < string > ( "--password" , "-p" )
86+ var passwordArg = new Option < string > ( "--password" , "-p" )
8787 {
8888 Description = "Password to use to authenticate" ,
8989 Arity = ArgumentArity . ExactlyOne
9090 } ;
9191
92- var offlineArg = new CliOption < bool > ( "--offline" )
92+ var offlineArg = new Option < bool > ( "--offline" )
9393 {
9494 Description = "Offline mode - skip validation of sourcelink URL targets"
9595 } ;
9696
97- var test = new CliCommand ( "test" , "TODO" )
97+ var test = new Command ( "test" , "TODO" )
9898 {
9999 pathArg ,
100100 authArg ,
@@ -116,25 +116,25 @@ private static CliRootCommand GetRootCommand()
116116 return TestAsync ( path , authMethod , authEncoding , user , password , offline , parseResult , cancellationToken ) ;
117117 } ) ;
118118
119- var printJson = new CliCommand ( "print-json" , "Print Source Link JSON stored in the PDB" )
119+ var printJson = new Command ( "print-json" , "Print Source Link JSON stored in the PDB" )
120120 {
121121 pathArg
122122 } ;
123123 printJson . SetAction ( ( parseResult , ct ) => PrintJsonAsync ( parseResult . GetValue ( pathArg ) ! , parseResult ) ) ;
124124
125- var printDocuments = new CliCommand ( "print-documents" , "TODO" )
125+ var printDocuments = new Command ( "print-documents" , "TODO" )
126126 {
127127 pathArg
128128 } ;
129129 printDocuments . SetAction ( ( parseResult , ct ) => PrintDocumentsAsync ( parseResult . GetValue ( pathArg ) ! , parseResult ) ) ;
130130
131- var printUrls = new CliCommand ( "print-urls" , "TODO" )
131+ var printUrls = new Command ( "print-urls" , "TODO" )
132132 {
133133 pathArg
134134 } ;
135135 printUrls . SetAction ( ( parseResult , ct ) => PrintUrlsAsync ( parseResult . GetValue ( pathArg ) ! , parseResult ) ) ;
136136
137- var root = new CliRootCommand ( )
137+ var root = new RootCommand ( )
138138 {
139139 test ,
140140 printJson ,
0 commit comments