mirror of
https://github.com/reactos/reactos.git
synced 2026-05-31 08:17:09 +08:00
Import TechBot
svn path=/trunk/; revision=13064
This commit is contained in:
34
irc/TechBot/TechBot.Library/SvnCommand.cs
Normal file
34
irc/TechBot/TechBot.Library/SvnCommand.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
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";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user