mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-17 17:32:50 +08:00
Updated Commands with with new Execute() method signature
This commit is contained in:
parent
07db28bb6f
commit
35568ab823
@ -58,17 +58,19 @@ in the previous step.
|
|||||||
```csharp
|
```csharp
|
||||||
public class AddPackageCommand : Command<AddPackageSettings>
|
public class AddPackageCommand : Command<AddPackageSettings>
|
||||||
{
|
{
|
||||||
public override int Execute(AddPackageSettings settings, ILookup<string, string> remaining)
|
public override int Execute(CommandContext context, AddPackageSettings settings)
|
||||||
{
|
{
|
||||||
// Omitted
|
// Omitted
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public class AddReferenceCommand : Command<AddReferenceSettings>
|
public class AddReferenceCommand : Command<AddReferenceSettings>
|
||||||
{
|
{
|
||||||
public override int Execute(AddReferenceSettings settings, ILookup<string, string> remaining)
|
public override int Execute(CommandContext context, AddReferenceSettings settings)
|
||||||
{
|
{
|
||||||
// Omitted
|
// Omitted
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user