@@ -149,13 +149,21 @@ internal static class AppInterface
149149 Console . WriteLine ( ) ;
150150 Console . WriteLine ( Strings . Separator ) ;
151151
152+ foreach ( string utility in AppInfo . InstalledUtilities ) {
153+ Console . WriteLine ( utility ) ;
154+ }
155+
156+ Console . WriteLine ( ) ;
157+
152158 var dependencies = ReflectionHelper . DumpDependencies ( ) ;
153159
154160 foreach ( var name in dependencies ) {
155161 Console . WriteLine ( $ "{ name . Name } ({ name . Version } )") ;
156162 }
157163
158164 NConsole . WaitForInput ( ) ;
165+
166+
159167 return null ;
160168 }
161169 } ,
@@ -221,7 +229,7 @@ private static NConsoleOption CreateConfigOption(MemberInfo m, string name)
221229 } ) ;
222230
223231 var enumValue = Enums . ReadFromSet < SearchEngineOptions > ( selected ) ;
224- var field = Config . GetType ( ) . ResolveField ( ( m ) . Name ) ;
232+ var field = Config . GetType ( ) . GetResolvedField ( ( m ) . Name ) ;
225233 field . SetValue ( Config , enumValue ) ;
226234
227235 Console . WriteLine ( enumValue ) ;
@@ -272,7 +280,7 @@ private static NConsoleOption CreateConfigOption(PropertyInfo member, string nam
272280 Name = GetName ( name , initVal ) ,
273281 Function = ( ) =>
274282 {
275- var fi = Config . GetType ( ) . ResolveField ( member . Name ) ;
283+ var fi = Config . GetType ( ) . GetResolvedField ( member . Name ) ;
276284 object curVal = fi . GetValue ( Config ) ;
277285 bool newVal = ! ( bool ) curVal ;
278286 fi . SetValue ( Config , newVal ) ;
@@ -360,24 +368,21 @@ public static NConsoleOption[] CreateResultOptions(IEnumerable<ImageResult> resu
360368 return result . Select ( r => CreateResultOption ( r , $ "{ n } #{ i ++ } ", c ) ) . ToArray ( ) ;
361369 }
362370
363- private static NConsoleOption CreateResultOption ( ImageResult result , string n , Color c )
371+ internal static NConsoleOption CreateResultOption ( ImageResult result , string n , Color c , float correction = - .3f )
364372 {
365-
366- const float CORRECTION_FACTOR = - .3f ;
367-
368373 var option = new NConsoleOption
369374 {
370375 Function = CreateOpenFunction ( result . Url ) ,
371376 ComboFunction = CreateDownloadFunction ( result ) ,
372- Color = c . ChangeBrightness ( CORRECTION_FACTOR ) ,
377+ Color = c . ChangeBrightness ( correction ) ,
373378 Name = n ,
374379 Data = result
375380 } ;
376381
377382 return option ;
378383 }
379384
380- private static NConsoleFunction CreateOpenFunction ( Uri url )
385+ internal static NConsoleFunction CreateOpenFunction ( Uri url )
381386 {
382387 return ( ) =>
383388 {
@@ -389,7 +394,7 @@ private static NConsoleFunction CreateOpenFunction(Uri url)
389394 } ;
390395 }
391396
392- private static NConsoleFunction CreateDownloadFunction ( ImageResult result )
397+ internal static NConsoleFunction CreateDownloadFunction ( ImageResult result )
393398 {
394399 return ( ) =>
395400 {
0 commit comments