mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 19:04:51 +08:00
Add "cls" command
--HG-- branch : dev
This commit is contained in:
@@ -18,7 +18,7 @@ namespace OrchardCLI {
|
||||
|
||||
public int Run() {
|
||||
var context = CommandHostContext();
|
||||
_output.WriteLine("Type \"help commands\" for help, \"exit\" to exit");
|
||||
_output.WriteLine("Type \"help commands\" for help, \"exit\" to exit, \"cls\" to clear screen");
|
||||
while (true) {
|
||||
var command = ReadCommand(context);
|
||||
switch (command.ToLowerInvariant()) {
|
||||
@@ -28,6 +28,9 @@ namespace OrchardCLI {
|
||||
case "e":
|
||||
_commandHostContextProvider.Shutdown(context);
|
||||
return 0;
|
||||
case "cls":
|
||||
Console.Clear();
|
||||
break;
|
||||
default:
|
||||
context = RunCommand(context, command);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user