2020-08-01 13:25:32 -07:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
2020-12-07 13:57:26 -08:00
|
|
|
|
using SabreTools.Help;
|
2020-08-01 13:25:32 -07:00
|
|
|
|
|
|
|
|
|
|
namespace RombaSharp.Features
|
|
|
|
|
|
{
|
|
|
|
|
|
internal class Shutdown : BaseFeature
|
|
|
|
|
|
{
|
|
|
|
|
|
public const string Value = "Shutdown";
|
|
|
|
|
|
|
|
|
|
|
|
public Shutdown()
|
|
|
|
|
|
{
|
|
|
|
|
|
Name = Value;
|
|
|
|
|
|
Flags = new List<string>() { "shutdown" };
|
|
|
|
|
|
Description = "Gracefully shuts down server.";
|
2020-12-07 13:57:26 -08:00
|
|
|
|
_featureType = ParameterType.Flag;
|
2020-08-01 13:25:32 -07:00
|
|
|
|
LongDescription = "Gracefully shuts down server saving all the cached data.";
|
|
|
|
|
|
Features = new Dictionary<string, Feature>();
|
2021-02-03 11:10:19 -08:00
|
|
|
|
|
|
|
|
|
|
// Common Features
|
|
|
|
|
|
AddCommonFeatures();
|
2020-08-01 13:25:32 -07:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public override void ProcessFeatures(Dictionary<string, Feature> features)
|
|
|
|
|
|
{
|
|
|
|
|
|
base.ProcessFeatures(features);
|
2020-10-07 15:42:30 -07:00
|
|
|
|
logger.User("This feature is not yet implemented: shutdown");
|
2020-08-01 13:25:32 -07:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|