mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 20:39:01 +00:00
32 lines
819 B
C#
32 lines
819 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace Cosmos.Shell.Console.Commands
|
|
{
|
|
public class EchoCommand : CommandBase
|
|
{
|
|
public override string Name
|
|
{
|
|
get { return "echo"; }
|
|
}
|
|
|
|
public override string Summary
|
|
{
|
|
get { return "Duplicates text you enter to the console."; }
|
|
}
|
|
|
|
public override void Execute(string param)
|
|
{
|
|
System.Console.WriteLine(param);
|
|
System.Console.WriteLine();
|
|
}
|
|
|
|
public override void Help()
|
|
{
|
|
System.Console.WriteLine("echo [text]");
|
|
System.Console.WriteLine(" Duplicates text you enter to the console.");
|
|
System.Console.WriteLine(" [text]: The text to duplicate.");
|
|
}
|
|
}
|
|
}
|