mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-27 15:07:03 +01:00
Split the service and server functions
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace TGS.Server.ChatCommands
|
||||
{
|
||||
/// <summary>
|
||||
/// Retrieve the current service version
|
||||
/// </summary>
|
||||
sealed class VersionCommand : ChatCommand
|
||||
{
|
||||
/// <summary>
|
||||
/// Construct a <see cref="VersionCommand"/>
|
||||
/// </summary>
|
||||
public VersionCommand()
|
||||
{
|
||||
Keyword = "version";
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override ExitCode Run(IList<string> parameters)
|
||||
{
|
||||
OutputProc(Instance.Version());
|
||||
return ExitCode.Normal;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override string GetHelpText()
|
||||
{
|
||||
return "Gets the running service version";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user