You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs-src/commands.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,27 +8,27 @@ They can be C# classes, lambda expressions, or CLI programs.
8
8
The InEngine.Core package is required to create a C# class command.
9
9
Install it in a Visual Studio project.
10
10
11
-
==Package Manager==
11
+
**Package Manager**
12
12
```bash
13
13
Install-Package InEngine.Core
14
14
```
15
15
16
-
==Nuget CLI==
16
+
**Nuget CLI**
17
17
```bash
18
18
nuget install InEgine.Core
19
19
```
20
20
21
-
==.NET CLI==
21
+
**.NET CLI**
22
22
```bash
23
23
dotnet add package InEngine.Core
24
24
```
25
25
26
-
==Paket CLI==
26
+
**Paket CLI**
27
27
```bash
28
28
paket add InEngine.Core
29
29
```
30
30
31
-
Adding a class that implements ==InEngine.Core.ICommand== is the simplest way to create a command.
31
+
Adding a class that implements **InEngine.Core.ICommand** is the simplest way to create a command.
32
32
33
33
```c#
34
34
usingSystem;
@@ -47,7 +47,7 @@ namespace MyCommandPlugin
47
47
```
48
48
49
49
A command that implements ICommand can be run directly or [queued](queuing), but it cannot be [scheduled](scheduling).
50
-
Extending the ==InEngine.Core.AbstractCommand== class adds extra functionality, like a progress bar, and the ability to schedule the command using the scheduler.
50
+
Extending the **InEngine.Core.AbstractCommand** class adds extra functionality, like a progress bar, and the ability to schedule the command using the scheduler.
51
51
Minimally, the Run method should be overridden.
52
52
53
53
```c#
@@ -68,7 +68,7 @@ namespace MyCommandPlugin
68
68
69
69
## Run a Command
70
70
71
-
Create a class that implements ==InEngine.Core.IOptions== in the same assembly as the command class.
71
+
Create a class that implements **InEngine.Core.IOptions** in the same assembly as the command class.
72
72
Add a VerbOptions attribute, from the CommandLine namespace, that defines the name of the command.
73
73
Optional help text can also be specified in the VerbOption attribute.
74
74
The help text can be auto-generated from the attribute or manually specified in the GetUsage method if desired.
0 commit comments