mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
33 lines
905 B
C#
33 lines
905 B
C#
using System.Collections.Generic;
|
|
using SabreTools.Help;
|
|
|
|
namespace RombaSharp.Features
|
|
{
|
|
internal class Shutdown : BaseFeature
|
|
{
|
|
public const string Value = "Shutdown";
|
|
|
|
public Shutdown()
|
|
{
|
|
Name = Value;
|
|
Flags.AddRange(["shutdown"]);
|
|
Description = "Gracefully shuts down server.";
|
|
_featureType = ParameterType.Flag;
|
|
LongDescription = "Gracefully shuts down server saving all the cached data.";
|
|
|
|
// Common Features
|
|
AddCommonFeatures();
|
|
}
|
|
|
|
public override bool ProcessFeatures(Dictionary<string, Feature?> features)
|
|
{
|
|
// If the base fails, just fail out
|
|
if (!base.ProcessFeatures(features))
|
|
return false;
|
|
|
|
logger.User("This feature is not yet implemented: shutdown");
|
|
return true;
|
|
}
|
|
}
|
|
}
|