recrownedgtk/RecrownedAthenaeum.ConsoleTools/CommandProcessor/ICommandEngineCommand.cs

24 lines
775 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using System.Text;
namespace RecrownedAthenaeum.Tools.CommandProcessor
{
interface ICommandEngineCommand
{
2018-12-09 03:28:58 +00:00
/// <summary>
/// Runs the command.
/// </summary>
/// <param name="arguments">Commands to be used. May be null.</param>
void Run(string[] arguments);
2018-12-09 03:28:58 +00:00
/// <summary>
/// Returns the help for the given argument.
/// If no argument is given (null), then returns overall help statement.
/// </summary>
/// <param name="argument">The argument the help string is for. Can be null for overall command help.</param>
/// <returns>The text to help understand the argument.</returns>
string Help(string argument);
}
}