From f460382a64e0d19bce828647db13555f6452783d Mon Sep 17 00:00:00 2001 From: Harrison Deng Date: Wed, 18 May 2022 22:03:45 -0500 Subject: [PATCH] Refactored Generation command name. --- .../Commands/{GenerationCommand.cs => Generate.cs} | 4 ++-- DotNetResxUtils/Program.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename DotNetResxUtils/Commands/{GenerationCommand.cs => Generate.cs} (96%) diff --git a/DotNetResxUtils/Commands/GenerationCommand.cs b/DotNetResxUtils/Commands/Generate.cs similarity index 96% rename from DotNetResxUtils/Commands/GenerationCommand.cs rename to DotNetResxUtils/Commands/Generate.cs index 69034c6..3ee5da6 100644 --- a/DotNetResxUtils/Commands/GenerationCommand.cs +++ b/DotNetResxUtils/Commands/Generate.cs @@ -7,12 +7,12 @@ using System.Resources.NetStandard; namespace DotNetResxUtils.Commands { - internal class GenerationCommand : Command + internal class Generate : Command { const string NAME = "generate"; const string DESC = "Generate a .resx file."; - public GenerationCommand() : base(NAME, DESC) + public Generate() : base(NAME, DESC) { Argument destArg = new Argument("destination", "The destination path to store this file. If no extension is given, .resx will automatically be concatenated."); Add(destArg); diff --git a/DotNetResxUtils/Program.cs b/DotNetResxUtils/Program.cs index 7dbe381..40b2bb1 100644 --- a/DotNetResxUtils/Program.cs +++ b/DotNetResxUtils/Program.cs @@ -10,7 +10,7 @@ namespace DotNetResxUtils static void Main(string[] args) { RootCommand rootCmd = new RootCommand(".Net Resx Utils provides tools for generating, and editing .resx files."); - rootCmd.AddCommand(new GenerationCommand()); + rootCmd.AddCommand(new Generate()); // See: Collection organizers - https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/object-and-collection-initializers }