Refactored Generation command name.
This commit is contained in:
parent
1cb6730bb1
commit
f460382a64
@ -7,12 +7,12 @@ using System.Resources.NetStandard;
|
|||||||
|
|
||||||
namespace DotNetResxUtils.Commands
|
namespace DotNetResxUtils.Commands
|
||||||
{
|
{
|
||||||
internal class GenerationCommand : Command
|
internal class Generate : Command
|
||||||
{
|
{
|
||||||
const string NAME = "generate";
|
const string NAME = "generate";
|
||||||
const string DESC = "Generate a .resx file.";
|
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.");
|
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);
|
Add(destArg);
|
@ -10,7 +10,7 @@ namespace DotNetResxUtils
|
|||||||
static void Main(string[] args)
|
static void Main(string[] args)
|
||||||
{
|
{
|
||||||
RootCommand rootCmd = new RootCommand(".Net Resx Utils provides tools for generating, and editing .resx files.");
|
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
|
// See: Collection organizers - https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/object-and-collection-initializers
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user