2005-01-15 19:27:25 +00:00
|
|
|
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" });
|
|
|
|
}
|
|
|
|
|
2005-02-16 21:07:55 +00:00
|
|
|
public void Handle(MessageContext context,
|
|
|
|
string commandName,
|
2005-01-15 19:27:25 +00:00
|
|
|
string parameters)
|
|
|
|
{
|
2005-02-16 21:07:55 +00:00
|
|
|
serviceOutput.WriteLine(context,
|
|
|
|
svnCommand);
|
2005-01-15 19:27:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public string Help()
|
|
|
|
{
|
|
|
|
return "!svn";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|