mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-05 01:07:21 +00:00
Moved the build script to System.CommandLine (#1159)
This commit is contained in:
1 parent
f0fa1411c8
commit
54c3f0b3e0
12 files changed
+232
-70
No files matched your search
@@ -2,10 +2,6 @@ using System.Text.RegularExpressions;
|
||||
|
||||
using SharedTools;
|
||||
|
||||
// ReSharper disable ClassNeverInstantiated.Global
|
||||
// ReSharper disable UnusedType.Global
|
||||
// ReSharper disable UnusedMember.Global
|
||||
|
||||
namespace Build.Commands;
|
||||
|
||||
public sealed partial class CollectI18NKeysCommand
|
||||
@@ -43,7 +39,16 @@ public sealed partial class CollectI18NKeysCommand
|
||||
END_TAG2
|
||||
];
|
||||
|
||||
[Command("collect-i18n", Description = "Collect I18N keys")]
|
||||
/// <summary>
|
||||
/// Defines the command "collect-i18n".
|
||||
/// </summary>
|
||||
public static Command CreateCommand()
|
||||
{
|
||||
var command = new Command("collect-i18n", "Collect I18N keys");
|
||||
command.SetAction((_, _) => new CollectI18NKeysCommand().CollectI18NKeys());
|
||||
return command;
|
||||
}
|
||||
|
||||
public async Task CollectI18NKeys()
|
||||
{
|
||||
if(!Environment.IsWorkingDirectoryValid())
|
||||
|
||||
Reference in new issue
Block a user