mirror of
https://github.com/danbulant/Cosmos
synced 2026-06-11 10:41:33 +00:00
30 lines
658 B
C#
30 lines
658 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace Cosmos.Shell.Console.Commands {
|
|
/// <summary>
|
|
/// Represents a command.
|
|
/// </summary>
|
|
public abstract class CommandBase {
|
|
/// <summary>
|
|
/// Gets the name of the command (must be lowercase).
|
|
/// </summary>
|
|
public abstract string Name
|
|
{
|
|
get;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the summary for the command.
|
|
/// </summary>
|
|
public abstract string Summary
|
|
{
|
|
get;
|
|
}
|
|
|
|
public abstract void Execute(string param);
|
|
|
|
public abstract void Help();
|
|
}
|
|
}
|