Refactored Generation command name.

This commit is contained in:
Harrison Deng 2022-05-18 22:03:45 -05:00
parent 1cb6730bb1
commit f460382a64
2 changed files with 3 additions and 3 deletions

View File

@ -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<FileInfo> destArg = new Argument<FileInfo>("destination", "The destination path to store this file. If no extension is given, .resx will automatically be concatenated.");
Add(destArg);

View File

@ -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
}