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:
903 bytes
|
Rev | Line | |
---|
[16985] | 1 | using System;
|
---|
| 2 |
|
---|
| 3 | namespace HeuristicLab.CommandLineInterface {
|
---|
| 4 |
|
---|
| 5 | /// <summary>
|
---|
| 6 | /// Attribute to specify a command. The class still needs to implement the ICommand interface.
|
---|
| 7 | /// </summary>
|
---|
| 8 | [AttributeUsage(AttributeTargets.Class)]
|
---|
| 9 | public class CommandAttribute : Attribute {
|
---|
| 10 | /// <summary>
|
---|
| 11 | /// To identify the command. This is the string, the user has to enter to activate this command.
|
---|
| 12 | /// If not set, the classname without 'Command' will be used. For example: DummyCommand -> Dummy
|
---|
| 13 | /// </summary>
|
---|
| 14 | public string Identifier { get; set; } = "";
|
---|
| 15 | /// <summary>
|
---|
| 16 | /// To specify child commands. For example: myApp myCommand childCommand ...
|
---|
| 17 | /// </summary>
|
---|
| 18 | public Type[] SubCommands { get; set; } = new Type[0];
|
---|
| 19 | /// <summary>
|
---|
| 20 | /// Description for the command.
|
---|
| 21 | /// </summary>
|
---|
| 22 | public string Description { get; set; } = "";
|
---|
| 23 | }
|
---|
| 24 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.