mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
9dab4509fa
svn path=/trunk/; revision=13064
34 lines
693 B
C#
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";
|
|
}
|
|
}
|
|
}
|