26 lines
457 B
C#
26 lines
457 B
C#
|
|
using TermApp.Core;
|
||
|
|
|
||
|
|
namespace TermApp.Commands
|
||
|
|
{
|
||
|
|
|
||
|
|
public class ClearCommand : ICommand
|
||
|
|
{
|
||
|
|
|
||
|
|
public string Name => "clear";
|
||
|
|
public string Description => "Clears the Terminal";
|
||
|
|
|
||
|
|
public void Execute(string[] args, string input = null)
|
||
|
|
{
|
||
|
|
|
||
|
|
Console.Clear();
|
||
|
|
if (args.Length != 0)
|
||
|
|
{
|
||
|
|
if (args[0] == "log") Console.WriteLine("Cleared :)");
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|