55using Microsoft . AspNetCore . Mvc ;
66using Microsoft . Extensions . Logging ;
77using Microsoft . Extensions . Options ;
8- using Steeltoe . InitializrService . Config ;
98using Steeltoe . InitializrService . Services ;
109using System ;
1110using System . Collections . Generic ;
@@ -73,23 +72,23 @@ public IActionResult GetHelp()
7372 help . Add ( "The URI templates take a set of parameters to customize the result of a request." ) ;
7473 var table = new List < List < string > >
7574 {
76- new ( ) { "Parameter" , "Description" , "Default Value" } ,
77- new ( ) { "name" , "project name" , uiConfig . Name . Default } ,
78- new ( ) { "namespace" , "namespace" , uiConfig . Namespace . Default } ,
79- new ( ) { "description" , "project description" , uiConfig . Description . Default } ,
80- new ( ) { "steeltoeVersion" , "Steeltoe version" , uiConfig . SteeltoeVersion . Default } ,
81- new ( ) { "dotNetFramework" , ".NET framework" , uiConfig . DotNetFramework . Default } ,
82- new ( ) { "language" , "programming language" , uiConfig . Language . Default } ,
83- new ( ) { "packaging" , "project packaging" , uiConfig . Packaging . Default } ,
75+ new ( ) { "Parameter" , "Description" , "Default Value" } ,
76+ new ( ) { "name" , "project name" , uiConfig . Name . Default } ,
77+ new ( ) { "namespace" , "namespace" , uiConfig . Namespace . Default } ,
78+ new ( ) { "description" , "project description" , uiConfig . Description . Default } ,
79+ new ( ) { "steeltoeVersion" , "Steeltoe version" , uiConfig . SteeltoeVersion . Default } ,
80+ new ( ) { "dotNetFramework" , ".NET framework" , uiConfig . DotNetFramework . Default } ,
81+ new ( ) { "language" , "programming language" , uiConfig . Language . Default } ,
82+ new ( ) { "packaging" , "project packaging" , uiConfig . Packaging . Default } ,
8483 } ;
8584 help . AddRange ( ToTable ( table ) ) ;
8685 help . Add ( string . Empty ) ;
8786 help . Add ( "The following section has a list of supported identifiers for the comma-separated" ) ;
8887 help . Add ( "list of \" dependencies\" ." ) ;
89- table = new List < List < string > >
90- {
91- new ( ) { "Id" , "Description" , "Steeltoe Version" , ".NET Framework" } ,
92- } ;
88+ table =
89+ [
90+ [ "Id" , "Description" , "Steeltoe Version" , ".NET Framework" ]
91+ ] ;
9392 table . AddRange (
9493 from @group in uiConfig . Dependencies . Values
9594 from dependency in @group . Values
@@ -109,7 +108,7 @@ from dependency in @group.Values
109108 return Ok ( string . Join ( newline , help ) ) ;
110109 }
111110
112- private static IEnumerable < string > ToTable ( IReadOnlyList < List < string > > rows )
111+ private static List < string > ToTable ( List < List < string > > rows )
113112 {
114113 var columnMaxWidth = new int [ rows [ 0 ] . Count ] ;
115114 for ( var column = 0 ; column < columnMaxWidth . Length ; ++ column )
0 commit comments