reactos/irc/TechBot/TechBot.Library/SvnCommand.cs
Casper Hornstrup 9dab4509fa Import TechBot
svn path=/trunk/; revision=13064
2005-01-15 19:27:25 +00:00

34 lines
693 B
C#

using System;
namespace TechBot.Library
{
public class SvnCommand : BaseCommand, ICommand
{
private IServiceOutput serviceOutput;
private string svnCommand;
public SvnCommand(IServiceOutput serviceOutput,
string svnCommand)
{
this.serviceOutput = serviceOutput;
this.svnCommand = svnCommand;
}
public bool CanHandle(string commandName)
{
return CanHandle(commandName,
new string[] { "svn" });
}
public void Handle(string commandName,
string parameters)
{
serviceOutput.WriteLine(svnCommand);
}
public string Help()
{
return "!svn";
}
}
}