Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/29/19 12:31:59 (5 years ago)
Author:
dpiringe
Message:

#2924:

  • in project HeuristicLab.CommandLineInterface changed output for options -> hidden options are not shown in the help box anymore
  • in project HeuristicLab.DynamicAssemblyTestApp:
    • added ApplicationAttributes
    • added full cancel/pause/resume support for class AppTest to test the same behaviour between main and child process
  • in project HeuristicLab:
    • changed auto generated Dockerfile -> only copies necessary projects -> speeds up the build process
    • in file HeuristicLab-3.3.csproj:
      • changed DockerDefaultTargetOS to Linux
      • removed reference HeuristicLab.DefinitionLanguage
      • added icon and manifest
    • deleted folder Properties with file launchSettings.json
    • changed the direct access to ApplicationTypes for OptimizeCommand and InspectCommand to new method IApplicationManager.GetInstances<T>(params object[] args)
  • added build script for docker image dockerImageBuild.ps1
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2924_DotNetCoreMigration/HeuristicLab.CommandLineInterface/CLIConsole.cs

    r16985 r16998  
    2828      WriteHeader(cmdData);
    2929
    30       if(exception != null) WriteErrors(exception);
    31      
     30      if (exception != null) WriteErrors(exception);
     31
    3232      WriteSyntax(cmdData);
    3333
     
    6262      Console.WriteLine($"ERROR(S):");
    6363      AggregateException ae = exception as AggregateException;
    64       if(ae != null) {
    65         foreach(var e in ae.InnerExceptions) {
     64      if (ae != null) {
     65        foreach (var e in ae.InnerExceptions) {
    6666          Console.WriteLine($"  -> {e} ");
    6767        }
    6868      } else {
    6969        Console.WriteLine($"  -> {exception}");
    70       }     
     70      }
    7171      Console.WriteLine();
    7272    }
     
    9494      WriteBoxSeparatorLine();
    9595      foreach (OptionData opt in cmdData.Options)
    96         WriteBoxLine(
    97           ((opt.Shortcut != null) ?
    98             $"{(OptionData.ShortcutPrefix + opt.Shortcut).ToLower() + ",",-ShortcutWidth}" :
    99             $""
    100           ) +
    101           $"{(OptionData.LongformPrefix + opt.Identifier).ToLower()}",
    102           opt.Property?.PropertyType.GetPrettyName(),
    103           opt.Description
    104         );
     96        if (!opt.Hidden)
     97          WriteBoxLine(
     98            ((opt.Shortcut != null) ?
     99              $"{(OptionData.ShortcutPrefix + opt.Shortcut).ToLower() + ",",-ShortcutWidth}" :
     100              $""
     101            ) +
     102            $"{(OptionData.LongformPrefix + opt.Identifier).ToLower()}",
     103            opt.Property?.PropertyType.GetPrettyName(),
     104            opt.Description
     105          );
    105106      WriteBoxSeparatorLine();
    106107    }
Note: See TracChangeset for help on using the changeset viewer.