source: branches/2924_DotNetCoreMigration/HeuristicLab/3.3/BuildCommand.cs @ 16985

Last change on this file since 16985 was 16985, checked in by dpiringe, 2 years ago

#2924:

  • added CLI Framework HeuristicLab.CommandLineInterface
  • added definition language test project HeuristicLab.DefinitionLanguage
  • added test project HeuristicLab.DynamicAssemblyTestApp, for PluginInfrastructure testing
  • changed project HeuristicLab to .NET Core and used it to create a CLI-Tool with the new CLI Framework
  • added Docker support to HeuristicLab
  • added IRunnerHost.cs ... forgot last commit
  • changed DockerRunnerHost and NativeRunnerHost to HeuristicLab-3.3.exe, was a little test project before
  • added new solution file HeuristicLab 3.3 No Views.sln, where all view projects are unloaded at start
File size: 495 bytes
Line 
1using System.Collections.Generic;
2using HeuristicLab.CommandLineInterface;
3
4namespace HeuristicLab {
5  [Command(Description = "To build a .hl file.")]
6  class BuildCommand : ICommand {
7
8    [Option(Shortcut = "o", Required = true, Description = "Sets the output filename.")]
9    public string Output { get; set; }
10
11    [Value(0)]
12    public string Input { get; set; }
13    public void Execute() {
14      HeuristicLab.DefinitionLanguage.Parser.Parse(Input, Output);
15    }
16  }
17}
Note: See TracBrowser for help on using the repository browser.