@@ -12,7 +12,7 @@ namespace LocalStack.AwsLocal
1212{
1313 internal static class Program
1414 {
15- private const string UsageResource = "LocalStack.AwsLocal.Usage.txt" ;
15+ private const string UsageResource = "LocalStack.AwsLocal.Docs. Usage.txt" ;
1616
1717 private static readonly IProcessHelper ProcessHelper = new ProcessHelper ( ) ;
1818 private static readonly string LocalStackHost = Environment . GetEnvironmentVariable ( "LOCALSTACK_HOST" ) ;
@@ -29,10 +29,9 @@ private static void Main(string[] args)
2929 Usage ( ) ;
3030 }
3131
32- AwsServiceEndpoint awsServiceEndpoint = GetServiceEndpoint ( ) ;
33- string service = GetService ( ) ;
32+ ( string service , AwsServiceEndpoint awsServiceEndpoint ) = GetServiceEndpoint ( ) ;
3433
35- if ( awsServiceEndpoint == null || service == null )
34+ if ( awsServiceEndpoint == null )
3635 {
3736 Console . WriteLine ( $ "ERROR: Unable to find LocalStack endpoint for service { service } ") ;
3837 Environment . Exit ( 1 ) ;
@@ -72,7 +71,7 @@ private static string GetService()
7271 return string . Empty ;
7372 }
7473
75- private static AwsServiceEndpoint GetServiceEndpoint ( )
74+ private static ( string service , AwsServiceEndpoint awsServiceEndpoint ) GetServiceEndpoint ( )
7675 {
7776 string service = GetService ( ) ;
7877 if ( service == "s3api" )
@@ -81,7 +80,7 @@ private static AwsServiceEndpoint GetServiceEndpoint()
8180 }
8281
8382 var awsServiceEndpoints = Config . GetAwsServiceEndpoints ( ) ;
84- return awsServiceEndpoints . SingleOrDefault ( endpoint => endpoint . CliName == service ) ;
83+ return ( service , awsServiceEndpoints . SingleOrDefault ( endpoint => endpoint . CliName == service ) ) ;
8584 }
8685
8786 private static void Usage ( )
0 commit comments