From 6952ebddd0ac352e3b5193e2c20ef87f0d2e0a80 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 29 Sep 2026 12:18:14 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../ModernMT.CLI/Commands/AddContentCommandApiCommand.g.cs | 4 ++-- .../ModernMT.CLI/Commands/AddGlossaryCommandApiCommand.g.cs | 4 ++-- .../ModernMT.CLI/Commands/CreateMemoryCommandApiCommand.g.cs | 4 ++-- .../ModernMT.CLI/Commands/DeleteMemoryCommandApiCommand.g.cs | 4 ++-- .../Commands/DetectLanguageCommandApiCommand.g.cs | 4 ++-- .../Commands/GetContextVectorCommandApiCommand.g.cs | 4 ++-- .../ModernMT.CLI/Commands/GetImportJobCommandApiCommand.g.cs | 4 ++-- src/cli/ModernMT.CLI/Commands/GetMemoryCommandApiCommand.g.cs | 4 ++-- .../ModernMT.CLI/Commands/ListLanguagesCommandApiCommand.g.cs | 4 ++-- .../ModernMT.CLI/Commands/ListMemoriesCommandApiCommand.g.cs | 4 ++-- .../Commands/QualityEstimationCommandApiCommand.g.cs | 4 ++-- .../Commands/TranslateBatchCommandApiCommand.g.cs | 4 ++-- src/cli/ModernMT.CLI/Commands/TranslateCommandApiCommand.g.cs | 4 ++-- .../ModernMT.CLI/Commands/UpdateMemoryCommandApiCommand.g.cs | 4 ++-- 14 files changed, 28 insertions(+), 28 deletions(-) diff --git a/src/cli/ModernMT.CLI/Commands/AddContentCommandApiCommand.g.cs b/src/cli/ModernMT.CLI/Commands/AddContentCommandApiCommand.g.cs index 39a77ae..ab9f655 100644 --- a/src/cli/ModernMT.CLI/Commands/AddContentCommandApiCommand.g.cs +++ b/src/cli/ModernMT.CLI/Commands/AddContentCommandApiCommand.g.cs @@ -91,9 +91,9 @@ private static string FormatResponse(ParseResult parseResult, global::ModernMT.I static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"add-content", @"Add content to a translation memory"); + var command = new Command(commandName ?? @"add-content", @"Add content to a translation memory"); command.Arguments.Add(Id); command.Options.Add(Source); command.Options.Add(Target); diff --git a/src/cli/ModernMT.CLI/Commands/AddGlossaryCommandApiCommand.g.cs b/src/cli/ModernMT.CLI/Commands/AddGlossaryCommandApiCommand.g.cs index 1712465..d154721 100644 --- a/src/cli/ModernMT.CLI/Commands/AddGlossaryCommandApiCommand.g.cs +++ b/src/cli/ModernMT.CLI/Commands/AddGlossaryCommandApiCommand.g.cs @@ -71,9 +71,9 @@ private static string FormatResponse(ParseResult parseResult, global::ModernMT.I static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"add-glossary", @"Add glossary terms to a memory"); + var command = new Command(commandName ?? @"add-glossary", @"Add glossary terms to a memory"); command.Arguments.Add(Id); command.Options.Add(Type); command.Options.Add(Tuid); diff --git a/src/cli/ModernMT.CLI/Commands/CreateMemoryCommandApiCommand.g.cs b/src/cli/ModernMT.CLI/Commands/CreateMemoryCommandApiCommand.g.cs index 9848797..b836c3b 100644 --- a/src/cli/ModernMT.CLI/Commands/CreateMemoryCommandApiCommand.g.cs +++ b/src/cli/ModernMT.CLI/Commands/CreateMemoryCommandApiCommand.g.cs @@ -63,9 +63,9 @@ private static string FormatResponse(ParseResult parseResult, global::ModernMT.M static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-memory", @"Create a translation memory"); + var command = new Command(commandName ?? @"create-memory", @"Create a translation memory"); command.Arguments.Add(NameOption); command.Options.Add(DescriptionOption); command.Options.Add(ExternalId); diff --git a/src/cli/ModernMT.CLI/Commands/DeleteMemoryCommandApiCommand.g.cs b/src/cli/ModernMT.CLI/Commands/DeleteMemoryCommandApiCommand.g.cs index f7958fe..69587c0 100644 --- a/src/cli/ModernMT.CLI/Commands/DeleteMemoryCommandApiCommand.g.cs +++ b/src/cli/ModernMT.CLI/Commands/DeleteMemoryCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::ModernMT.M static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"delete-memory", @"Delete a translation memory"); + var command = new Command(commandName ?? @"delete-memory", @"Delete a translation memory"); command.Arguments.Add(Id); diff --git a/src/cli/ModernMT.CLI/Commands/DetectLanguageCommandApiCommand.g.cs b/src/cli/ModernMT.CLI/Commands/DetectLanguageCommandApiCommand.g.cs index 92ffc39..b0b46f2 100644 --- a/src/cli/ModernMT.CLI/Commands/DetectLanguageCommandApiCommand.g.cs +++ b/src/cli/ModernMT.CLI/Commands/DetectLanguageCommandApiCommand.g.cs @@ -58,9 +58,9 @@ private static string FormatResponse(ParseResult parseResult, global::ModernMT.D static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"detect-language", @"Detect language of text"); + var command = new Command(commandName ?? @"detect-language", @"Detect language of text"); command.Options.Add(Q); command.Options.Add(Format); command.Options.Add(Input); diff --git a/src/cli/ModernMT.CLI/Commands/GetContextVectorCommandApiCommand.g.cs b/src/cli/ModernMT.CLI/Commands/GetContextVectorCommandApiCommand.g.cs index fa0ca02..695ebda 100644 --- a/src/cli/ModernMT.CLI/Commands/GetContextVectorCommandApiCommand.g.cs +++ b/src/cli/ModernMT.CLI/Commands/GetContextVectorCommandApiCommand.g.cs @@ -78,9 +78,9 @@ private static string FormatResponse(ParseResult parseResult, global::ModernMT.C static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"get-context-vector", @"Generate context vector for adaptive translation"); + var command = new Command(commandName ?? @"get-context-vector", @"Generate context vector for adaptive translation"); command.Options.Add(Source); command.Options.Add(Targets); command.Options.Add(Text); diff --git a/src/cli/ModernMT.CLI/Commands/GetImportJobCommandApiCommand.g.cs b/src/cli/ModernMT.CLI/Commands/GetImportJobCommandApiCommand.g.cs index 409c5d1..2488b03 100644 --- a/src/cli/ModernMT.CLI/Commands/GetImportJobCommandApiCommand.g.cs +++ b/src/cli/ModernMT.CLI/Commands/GetImportJobCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::ModernMT.I static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"get-import-job", @"Get import job status"); + var command = new Command(commandName ?? @"get-import-job", @"Get import job status"); command.Arguments.Add(Id); diff --git a/src/cli/ModernMT.CLI/Commands/GetMemoryCommandApiCommand.g.cs b/src/cli/ModernMT.CLI/Commands/GetMemoryCommandApiCommand.g.cs index ab094b3..6bad812 100644 --- a/src/cli/ModernMT.CLI/Commands/GetMemoryCommandApiCommand.g.cs +++ b/src/cli/ModernMT.CLI/Commands/GetMemoryCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::ModernMT.M static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"get-memory", @"Get a translation memory"); + var command = new Command(commandName ?? @"get-memory", @"Get a translation memory"); command.Arguments.Add(Id); diff --git a/src/cli/ModernMT.CLI/Commands/ListLanguagesCommandApiCommand.g.cs b/src/cli/ModernMT.CLI/Commands/ListLanguagesCommandApiCommand.g.cs index c358ce8..72f6bdd 100644 --- a/src/cli/ModernMT.CLI/Commands/ListLanguagesCommandApiCommand.g.cs +++ b/src/cli/ModernMT.CLI/Commands/ListLanguagesCommandApiCommand.g.cs @@ -31,9 +31,9 @@ private static string FormatResponse(ParseResult parseResult, global::ModernMT.L static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-languages", @"List supported languages"); + var command = new Command(commandName ?? @"list-languages", @"List supported languages"); diff --git a/src/cli/ModernMT.CLI/Commands/ListMemoriesCommandApiCommand.g.cs b/src/cli/ModernMT.CLI/Commands/ListMemoriesCommandApiCommand.g.cs index 003f774..b31b894 100644 --- a/src/cli/ModernMT.CLI/Commands/ListMemoriesCommandApiCommand.g.cs +++ b/src/cli/ModernMT.CLI/Commands/ListMemoriesCommandApiCommand.g.cs @@ -31,9 +31,9 @@ private static string FormatResponse(ParseResult parseResult, global::ModernMT.M static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-memories", @"List translation memories"); + var command = new Command(commandName ?? @"list-memories", @"List translation memories"); diff --git a/src/cli/ModernMT.CLI/Commands/QualityEstimationCommandApiCommand.g.cs b/src/cli/ModernMT.CLI/Commands/QualityEstimationCommandApiCommand.g.cs index 0178f14..de58dca 100644 --- a/src/cli/ModernMT.CLI/Commands/QualityEstimationCommandApiCommand.g.cs +++ b/src/cli/ModernMT.CLI/Commands/QualityEstimationCommandApiCommand.g.cs @@ -57,9 +57,9 @@ private static string FormatResponse(ParseResult parseResult, global::ModernMT.Q static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"quality-estimation", @"Estimate translation quality"); + var command = new Command(commandName ?? @"quality-estimation", @"Estimate translation quality"); command.Options.Add(Source); command.Options.Add(Target); command.Options.Add(Sentence); diff --git a/src/cli/ModernMT.CLI/Commands/TranslateBatchCommandApiCommand.g.cs b/src/cli/ModernMT.CLI/Commands/TranslateBatchCommandApiCommand.g.cs index 69b627e..81055cb 100644 --- a/src/cli/ModernMT.CLI/Commands/TranslateBatchCommandApiCommand.g.cs +++ b/src/cli/ModernMT.CLI/Commands/TranslateBatchCommandApiCommand.g.cs @@ -91,9 +91,9 @@ private static string FormatResponse(ParseResult parseResult, global::ModernMT.B static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"translate-batch", @"Submit batch translation"); + var command = new Command(commandName ?? @"translate-batch", @"Submit batch translation"); command.Options.Add(Source); command.Options.Add(Target); command.Options.Add(Q); diff --git a/src/cli/ModernMT.CLI/Commands/TranslateCommandApiCommand.g.cs b/src/cli/ModernMT.CLI/Commands/TranslateCommandApiCommand.g.cs index 9c10cd8..a36ae5a 100644 --- a/src/cli/ModernMT.CLI/Commands/TranslateCommandApiCommand.g.cs +++ b/src/cli/ModernMT.CLI/Commands/TranslateCommandApiCommand.g.cs @@ -98,9 +98,9 @@ private static string FormatResponse(ParseResult parseResult, global::ModernMT.T static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"translate", @"Translate text"); + var command = new Command(commandName ?? @"translate", @"Translate text"); command.Options.Add(Source); command.Options.Add(Target); command.Options.Add(Q); diff --git a/src/cli/ModernMT.CLI/Commands/UpdateMemoryCommandApiCommand.g.cs b/src/cli/ModernMT.CLI/Commands/UpdateMemoryCommandApiCommand.g.cs index 9dfcac9..759d644 100644 --- a/src/cli/ModernMT.CLI/Commands/UpdateMemoryCommandApiCommand.g.cs +++ b/src/cli/ModernMT.CLI/Commands/UpdateMemoryCommandApiCommand.g.cs @@ -63,9 +63,9 @@ private static string FormatResponse(ParseResult parseResult, global::ModernMT.M static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"update-memory", @"Update a translation memory"); + var command = new Command(commandName ?? @"update-memory", @"Update a translation memory"); command.Arguments.Add(Id); command.Options.Add(NameOption); command.Options.Add(DescriptionOption);