From d56502e751ddbfcd867009d7176ac8ec8fe971ad Mon Sep 17 00:00:00 2001 From: Renaud Paquay Date: Sat, 24 Jul 2010 15:12:52 -0700 Subject: [PATCH] Add "cls" command --HG-- branch : dev --- src/Tools/OrchardCli/CLIHost.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Tools/OrchardCli/CLIHost.cs b/src/Tools/OrchardCli/CLIHost.cs index b409d0d6a..0a85394da 100644 --- a/src/Tools/OrchardCli/CLIHost.cs +++ b/src/Tools/OrchardCli/CLIHost.cs @@ -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;