mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-22 05:48:37 +00:00
38 lines
937 B
C#
38 lines
937 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace RsenkTest.Commands.ClearScreen
|
|
{
|
|
class ClearScreen : CommandBase
|
|
{
|
|
public override string Name
|
|
{
|
|
get { return "cls"; }
|
|
}
|
|
|
|
public override string Summary
|
|
{
|
|
get { return "Clears the screen and displays the welcome message."; }
|
|
}
|
|
|
|
public override void Help()
|
|
{
|
|
Console.WriteLine(""); //TODO: Write this method
|
|
}
|
|
|
|
public override void Execute(params ParameterBase[] args)
|
|
{
|
|
if (args.Length > 0)
|
|
{
|
|
Prompter.PrintError("The command '" + Name + "' does not take any parameters.");
|
|
}
|
|
else
|
|
{
|
|
Console.Clear();
|
|
Prompter.PrintWelcome("");
|
|
}
|
|
}
|
|
}
|
|
}
|