2020-08-01 13:25:32 -07:00
|
|
|
|
using System.Collections.Generic;
|
2020-12-08 13:23:59 -08:00
|
|
|
|
using SabreTools.Core;
|
2020-12-07 13:57:26 -08:00
|
|
|
|
using SabreTools.Help;
|
2020-08-01 13:25:32 -07:00
|
|
|
|
|
|
|
|
|
|
namespace RombaSharp.Features
|
|
|
|
|
|
{
|
|
|
|
|
|
internal class Version : BaseFeature
|
|
|
|
|
|
{
|
|
|
|
|
|
public const string Value = "Version";
|
|
|
|
|
|
|
|
|
|
|
|
public Version()
|
|
|
|
|
|
{
|
|
|
|
|
|
Name = Value;
|
2024-03-06 01:04:51 -05:00
|
|
|
|
Flags = ["version"];
|
2020-08-01 13:25:32 -07:00
|
|
|
|
Description = "Prints version";
|
2020-12-07 13:57:26 -08:00
|
|
|
|
_featureType = ParameterType.Flag;
|
2021-03-19 21:01:07 -07:00
|
|
|
|
LongDescription = "Prints current program version.";
|
2024-03-05 20:26:38 -05:00
|
|
|
|
Features = [];
|
2021-02-03 11:10:19 -08:00
|
|
|
|
|
|
|
|
|
|
// Common Features
|
|
|
|
|
|
AddCommonFeatures();
|
2020-08-01 13:25:32 -07:00
|
|
|
|
}
|
|
|
|
|
|
|
2024-03-05 20:26:38 -05:00
|
|
|
|
public override bool ProcessFeatures(Dictionary<string, Feature?> features)
|
2020-08-01 13:25:32 -07:00
|
|
|
|
{
|
2021-03-19 20:52:11 -07:00
|
|
|
|
// If the base fails, just fail out
|
|
|
|
|
|
if (!base.ProcessFeatures(features))
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
2024-03-13 00:09:20 -04:00
|
|
|
|
logger.User($"RombaSharp version: {Globals.Version}");
|
2021-03-19 20:52:11 -07:00
|
|
|
|
return true;
|
2020-08-01 13:25:32 -07:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|