mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Add "cls" command
--HG-- branch : dev
This commit is contained in:
@@ -18,7 +18,7 @@ namespace OrchardCLI {
|
|||||||
|
|
||||||
public int Run() {
|
public int Run() {
|
||||||
var context = CommandHostContext();
|
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) {
|
while (true) {
|
||||||
var command = ReadCommand(context);
|
var command = ReadCommand(context);
|
||||||
switch (command.ToLowerInvariant()) {
|
switch (command.ToLowerInvariant()) {
|
||||||
@@ -28,6 +28,9 @@ namespace OrchardCLI {
|
|||||||
case "e":
|
case "e":
|
||||||
_commandHostContextProvider.Shutdown(context);
|
_commandHostContextProvider.Shutdown(context);
|
||||||
return 0;
|
return 0;
|
||||||
|
case "cls":
|
||||||
|
Console.Clear();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
context = RunCommand(context, command);
|
context = RunCommand(context, command);
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user