mirror of
https://github.com/reactos/reactos.git
synced 2024-10-30 19:41:57 +00:00
70350430a5
svn path=/trunk/; revision=13604
37 lines
776 B
C#
37 lines
776 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(MessageContext context,
|
|
string commandName,
|
|
string parameters)
|
|
{
|
|
serviceOutput.WriteLine(context,
|
|
svnCommand);
|
|
}
|
|
|
|
public string Help()
|
|
{
|
|
return "!svn";
|
|
}
|
|
}
|
|
}
|