From 6356066a578af409e764eb647d895c5eedbe3af9 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 28 Sep 2026 21:05:35 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- src/cli/Revocalize.CLI/Commands/ApiCommand.g.cs | 5 ++++- .../Commands/ConversionApiGroupCommand.g.cs | 5 ++++- .../ConversionCheckTaskCommandApiCommand.g.cs | 3 +++ .../ConversionConvertAudioCommandApiCommand.g.cs | 3 +++ .../Commands/ModelsApiGroupCommand.g.cs | 5 ++++- .../Commands/ModelsCreateModelCommandApiCommand.g.cs | 3 +++ .../Commands/ModelsListModelsCommandApiCommand.g.cs | 3 +++ .../Commands/TrainingApiGroupCommand.g.cs | 5 ++++- .../Commands/TrainingTrainModelCommandApiCommand.g.cs | 3 +++ src/cli/Revocalize.CLI/README.md | 11 +++++++++-- 10 files changed, 40 insertions(+), 6 deletions(-) diff --git a/src/cli/Revocalize.CLI/Commands/ApiCommand.g.cs b/src/cli/Revocalize.CLI/Commands/ApiCommand.g.cs index 097d4b5..8034936 100644 --- a/src/cli/Revocalize.CLI/Commands/ApiCommand.g.cs +++ b/src/cli/Revocalize.CLI/Commands/ApiCommand.g.cs @@ -4,8 +4,10 @@ namespace Revocalize.CLI.Commands; -internal static class ApiCommand +internal static partial class ApiCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command("api", "Generated endpoint commands."); @@ -13,6 +15,7 @@ public static Command Create() command.Subcommands.Add(ConversionApiGroupCommand.Create()); command.Subcommands.Add(ModelsApiGroupCommand.Create()); command.Subcommands.Add(TrainingApiGroupCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/cli/Revocalize.CLI/Commands/ConversionApiGroupCommand.g.cs b/src/cli/Revocalize.CLI/Commands/ConversionApiGroupCommand.g.cs index 78c2374..428019b 100644 --- a/src/cli/Revocalize.CLI/Commands/ConversionApiGroupCommand.g.cs +++ b/src/cli/Revocalize.CLI/Commands/ConversionApiGroupCommand.g.cs @@ -4,13 +4,16 @@ namespace Revocalize.CLI.Commands; -internal static class ConversionApiGroupCommand +internal static partial class ConversionApiGroupCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"conversion", @"Conversion endpoint commands."); command.Subcommands.Add(ConversionCheckTaskCommandApiCommand.Create()); command.Subcommands.Add(ConversionConvertAudioCommandApiCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/cli/Revocalize.CLI/Commands/ConversionCheckTaskCommandApiCommand.g.cs b/src/cli/Revocalize.CLI/Commands/ConversionCheckTaskCommandApiCommand.g.cs index 2d393f8..2ee9e3a 100644 --- a/src/cli/Revocalize.CLI/Commands/ConversionCheckTaskCommandApiCommand.g.cs +++ b/src/cli/Revocalize.CLI/Commands/ConversionCheckTaskCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::Revocalize static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"check-task", @"Check conversion task status"); @@ -66,6 +68,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/cli/Revocalize.CLI/Commands/ConversionConvertAudioCommandApiCommand.g.cs b/src/cli/Revocalize.CLI/Commands/ConversionConvertAudioCommandApiCommand.g.cs index 1ad8666..1171ad9 100644 --- a/src/cli/Revocalize.CLI/Commands/ConversionConvertAudioCommandApiCommand.g.cs +++ b/src/cli/Revocalize.CLI/Commands/ConversionConvertAudioCommandApiCommand.g.cs @@ -76,6 +76,8 @@ private static string FormatResponse(ParseResult parseResult, global::Revocalize static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"convert-audio", @"Convert a vocal audio file to a target voice model"); @@ -133,6 +135,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/cli/Revocalize.CLI/Commands/ModelsApiGroupCommand.g.cs b/src/cli/Revocalize.CLI/Commands/ModelsApiGroupCommand.g.cs index 0c270ef..d577728 100644 --- a/src/cli/Revocalize.CLI/Commands/ModelsApiGroupCommand.g.cs +++ b/src/cli/Revocalize.CLI/Commands/ModelsApiGroupCommand.g.cs @@ -4,13 +4,16 @@ namespace Revocalize.CLI.Commands; -internal static class ModelsApiGroupCommand +internal static partial class ModelsApiGroupCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"models", @"Models endpoint commands."); command.Subcommands.Add(ModelsCreateModelCommandApiCommand.Create()); command.Subcommands.Add(ModelsListModelsCommandApiCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/cli/Revocalize.CLI/Commands/ModelsCreateModelCommandApiCommand.g.cs b/src/cli/Revocalize.CLI/Commands/ModelsCreateModelCommandApiCommand.g.cs index 2194740..302414b 100644 --- a/src/cli/Revocalize.CLI/Commands/ModelsCreateModelCommandApiCommand.g.cs +++ b/src/cli/Revocalize.CLI/Commands/ModelsCreateModelCommandApiCommand.g.cs @@ -41,6 +41,8 @@ private static string FormatResponse(ParseResult parseResult, global::Revocalize static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-model", @"Create a pending custom AI voice model"); @@ -69,6 +71,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/cli/Revocalize.CLI/Commands/ModelsListModelsCommandApiCommand.g.cs b/src/cli/Revocalize.CLI/Commands/ModelsListModelsCommandApiCommand.g.cs index 34fdd29..d043d7e 100644 --- a/src/cli/Revocalize.CLI/Commands/ModelsListModelsCommandApiCommand.g.cs +++ b/src/cli/Revocalize.CLI/Commands/ModelsListModelsCommandApiCommand.g.cs @@ -29,6 +29,8 @@ private static string FormatResponse(ParseResult parseResult, global::Revocalize static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-models", @"Get available AI voice models"); @@ -62,6 +64,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/cli/Revocalize.CLI/Commands/TrainingApiGroupCommand.g.cs b/src/cli/Revocalize.CLI/Commands/TrainingApiGroupCommand.g.cs index 3be6574..c65bf8b 100644 --- a/src/cli/Revocalize.CLI/Commands/TrainingApiGroupCommand.g.cs +++ b/src/cli/Revocalize.CLI/Commands/TrainingApiGroupCommand.g.cs @@ -4,12 +4,15 @@ namespace Revocalize.CLI.Commands; -internal static class TrainingApiGroupCommand +internal static partial class TrainingApiGroupCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"training", @"Training endpoint commands."); command.Subcommands.Add(TrainingTrainModelCommandApiCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/cli/Revocalize.CLI/Commands/TrainingTrainModelCommandApiCommand.g.cs b/src/cli/Revocalize.CLI/Commands/TrainingTrainModelCommandApiCommand.g.cs index 12e87c0..5ac83cd 100644 --- a/src/cli/Revocalize.CLI/Commands/TrainingTrainModelCommandApiCommand.g.cs +++ b/src/cli/Revocalize.CLI/Commands/TrainingTrainModelCommandApiCommand.g.cs @@ -40,6 +40,8 @@ private static string FormatResponse(ParseResult parseResult, global::Revocalize static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"train-model", @"Train a custom AI voice model"); @@ -68,6 +70,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/cli/Revocalize.CLI/README.md b/src/cli/Revocalize.CLI/README.md index f96f220..c0f019d 100644 --- a/src/cli/Revocalize.CLI/README.md +++ b/src/cli/Revocalize.CLI/README.md @@ -12,5 +12,12 @@ dotnet tool install --global Revocalize.CLI --prerelease ```bash revocalize --help -revocalize api --help -``` \ No newline at end of file +revocalize conversion --help +``` + +## Customization + +Generated operation, tag, and API group command classes are partial. Implement +`static partial void CustomizeCommand(ref Command command)` in a separate source +file to add aliases or validators, change the action, or replace a command. The +hook runs after the generated command has been configured. \ No newline at end of file