2005-01-15 19:27:25 +00:00
|
|
|
using System;
|
|
|
|
|
|
|
|
namespace TechBot.Library
|
|
|
|
{
|
2007-12-10 19:08:13 +00:00
|
|
|
public class SvnCommand : Command
|
2005-01-15 19:27:25 +00:00
|
|
|
{
|
2007-12-10 19:08:13 +00:00
|
|
|
private string m_SvnRoot;
|
2005-01-15 19:27:25 +00:00
|
|
|
|
2007-12-10 19:08:13 +00:00
|
|
|
public SvnCommand(TechBotService techBot)
|
|
|
|
: base(techBot)
|
2005-01-15 19:27:25 +00:00
|
|
|
{
|
2007-12-10 19:08:13 +00:00
|
|
|
m_SvnRoot = Settings.Default.SVNRoot;
|
2005-01-15 19:27:25 +00:00
|
|
|
}
|
|
|
|
|
2007-12-10 19:08:13 +00:00
|
|
|
public override string[] AvailableCommands
|
|
|
|
{
|
|
|
|
get { return new string[] { "svn" }; }
|
|
|
|
}
|
|
|
|
|
|
|
|
public override void Handle(MessageContext context,
|
2005-02-16 21:07:55 +00:00
|
|
|
string commandName,
|
2005-01-15 19:27:25 +00:00
|
|
|
string parameters)
|
|
|
|
{
|
2007-12-10 19:08:13 +00:00
|
|
|
TechBot.ServiceOutput.WriteLine(context, string.Format("svn co {0}" , m_SvnRoot));
|
2005-01-15 19:27:25 +00:00
|
|
|
}
|
2007-12-10 19:08:13 +00:00
|
|
|
|
|
|
|
public override string Help()
|
2005-01-15 19:27:25 +00:00
|
|
|
{
|
|
|
|
return "!svn";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|