Last change
on this file since 16985 was
16985,
checked in by dpiringe, 5 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:
868 bytes
|
Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.IO;
|
---|
4 | using HeuristicLab.CommandLineInterface;
|
---|
5 | using HeuristicLab.DynamicAssemblyTestApp;
|
---|
6 | using HeuristicLab.PluginInfrastructure;
|
---|
7 |
|
---|
8 | namespace HeuristicLab {
|
---|
9 | [Command(Description = "To inspect a .hl file.")]
|
---|
10 | class InspectCommand : ICommand {
|
---|
11 |
|
---|
12 | [Value(0)]
|
---|
13 | public string Input { get; set; }
|
---|
14 |
|
---|
15 | public void Execute() {
|
---|
16 | if (Input == null || !File.Exists(Input))
|
---|
17 | throw new FileNotFoundException("Path to .hl file empty or wrong!");
|
---|
18 |
|
---|
19 | if (Settings.Host != null) {
|
---|
20 | Settings.Host.Run(new ApplicationRunner() {
|
---|
21 | QuietMode = false,
|
---|
22 | AssembliesToLoad = Settings.assemblyInfos,
|
---|
23 | StartApplication = new InspectApplication() {
|
---|
24 | InputFilePath = new UniPath(Input)
|
---|
25 | }
|
---|
26 | });
|
---|
27 | }
|
---|
28 |
|
---|
29 | }
|
---|
30 | }
|
---|
31 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.