generated from Distractic/LethalCompanyTemplate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix!: Change naming in IPredictable API to clearly convey that not ju…
…st arguments but also Input should be predicted
- Loading branch information
1 parent
d8ceb51
commit ab52e49
Showing
4 changed files
with
17 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
namespace Computerdores; | ||
|
||
public interface IPredictable { | ||
public string PredictArguments(string partialArgumentsText); | ||
public string PredictInput(string partialInput); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
namespace Computerdores.Vanillin; | ||
|
||
public class TestCommand : SimpleCommand, ICommand { | ||
|
||
public string GetName() => "test"; | ||
|
||
protected override CommandResult Execute(string input, ITerminal terminal) { | ||
return new CommandResult("test!\n", false, true); | ||
} | ||
|
||
public object Clone() => new TestCommand(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters