diff --git a/src/cli/Anam.CLI/Commands/ApiCommand.g.cs b/src/cli/Anam.CLI/Commands/ApiCommand.g.cs index e9c8723..e70c3b0 100644 --- a/src/cli/Anam.CLI/Commands/ApiCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/ApiCommand.g.cs @@ -4,8 +4,10 @@ namespace Anam.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."); @@ -19,6 +21,7 @@ public static Command Create() command.Subcommands.Add(ShareLinksApiGroupCommand.Create()); command.Subcommands.Add(ToolsApiGroupCommand.Create()); command.Subcommands.Add(VoicesApiGroupCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/cli/Anam.CLI/Commands/AuthApiGroupCommand.g.cs b/src/cli/Anam.CLI/Commands/AuthApiGroupCommand.g.cs index e92cb18..dfe6d08 100644 --- a/src/cli/Anam.CLI/Commands/AuthApiGroupCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/AuthApiGroupCommand.g.cs @@ -4,12 +4,15 @@ namespace Anam.CLI.Commands; -internal static class AuthApiGroupCommand +internal static partial class AuthApiGroupCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"auth", @"Auth endpoint commands."); command.Subcommands.Add(AuthCreateSessionTokenCommandApiCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/cli/Anam.CLI/Commands/AuthCreateSessionTokenCommandApiCommand.g.cs b/src/cli/Anam.CLI/Commands/AuthCreateSessionTokenCommandApiCommand.g.cs index ace556b..2e2e12a 100644 --- a/src/cli/Anam.CLI/Commands/AuthCreateSessionTokenCommandApiCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/AuthCreateSessionTokenCommandApiCommand.g.cs @@ -61,6 +61,8 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Creat static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-session-token", @"Create session token @@ -113,6 +115,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/Anam.CLI/Commands/AvatarsApiGroupCommand.g.cs b/src/cli/Anam.CLI/Commands/AvatarsApiGroupCommand.g.cs index 098bfff..343dae0 100644 --- a/src/cli/Anam.CLI/Commands/AvatarsApiGroupCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/AvatarsApiGroupCommand.g.cs @@ -4,8 +4,10 @@ namespace Anam.CLI.Commands; -internal static class AvatarsApiGroupCommand +internal static partial class AvatarsApiGroupCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"avatars", @"Avatars endpoint commands."); @@ -14,6 +16,7 @@ public static Command Create() command.Subcommands.Add(AvatarsGetAvatarCommandApiCommand.Create()); command.Subcommands.Add(AvatarsListAvatarsCommandApiCommand.Create()); command.Subcommands.Add(AvatarsUpdateAvatarCommandApiCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/cli/Anam.CLI/Commands/AvatarsCreateAvatarCommandApiCommand.g.cs b/src/cli/Anam.CLI/Commands/AvatarsCreateAvatarCommandApiCommand.g.cs index 703763a..0e982a8 100644 --- a/src/cli/Anam.CLI/Commands/AvatarsCreateAvatarCommandApiCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/AvatarsCreateAvatarCommandApiCommand.g.cs @@ -68,6 +68,8 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Avata static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-avatar", @"Create avatar @@ -123,6 +125,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/Anam.CLI/Commands/AvatarsDeleteAvatarCommandApiCommand.g.cs b/src/cli/Anam.CLI/Commands/AvatarsDeleteAvatarCommandApiCommand.g.cs index 11dcb9b..275d6fe 100644 --- a/src/cli/Anam.CLI/Commands/AvatarsDeleteAvatarCommandApiCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/AvatarsDeleteAvatarCommandApiCommand.g.cs @@ -13,6 +13,8 @@ internal static partial class AvatarsDeleteAvatarCommandApiCommand Description = @"Avatar ID.", }; + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"delete-avatar", @"Delete avatar @@ -33,6 +35,7 @@ await client.Avatars.DeleteAvatarAsync( await CliRuntime.WriteSuccessAsync(parseResult, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/cli/Anam.CLI/Commands/AvatarsGetAvatarCommandApiCommand.g.cs b/src/cli/Anam.CLI/Commands/AvatarsGetAvatarCommandApiCommand.g.cs index 4b8eeb7..b8ca294 100644 --- a/src/cli/Anam.CLI/Commands/AvatarsGetAvatarCommandApiCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/AvatarsGetAvatarCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Avata static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"get-avatar", @"Get avatar @@ -59,6 +61,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/Anam.CLI/Commands/AvatarsListAvatarsCommandApiCommand.g.cs b/src/cli/Anam.CLI/Commands/AvatarsListAvatarsCommandApiCommand.g.cs index 8101fe8..519c1d5 100644 --- a/src/cli/Anam.CLI/Commands/AvatarsListAvatarsCommandApiCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/AvatarsListAvatarsCommandApiCommand.g.cs @@ -49,6 +49,8 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.ListA static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-avatars", @"List avatars @@ -92,6 +94,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/Anam.CLI/Commands/AvatarsUpdateAvatarCommandApiCommand.g.cs b/src/cli/Anam.CLI/Commands/AvatarsUpdateAvatarCommandApiCommand.g.cs index 8abd1ad..755f3ed 100644 --- a/src/cli/Anam.CLI/Commands/AvatarsUpdateAvatarCommandApiCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/AvatarsUpdateAvatarCommandApiCommand.g.cs @@ -40,6 +40,8 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Avata static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"update-avatar", @"Update avatar @@ -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/Anam.CLI/Commands/KnowledgeApiGroupCommand.g.cs b/src/cli/Anam.CLI/Commands/KnowledgeApiGroupCommand.g.cs index c31687c..6d8dbc7 100644 --- a/src/cli/Anam.CLI/Commands/KnowledgeApiGroupCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/KnowledgeApiGroupCommand.g.cs @@ -4,8 +4,10 @@ namespace Anam.CLI.Commands; -internal static class KnowledgeApiGroupCommand +internal static partial class KnowledgeApiGroupCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"knowledge", @"Knowledge endpoint commands."); @@ -21,6 +23,7 @@ public static Command Create() command.Subcommands.Add(KnowledgeUpdateKnowledgeDocumentCommandApiCommand.Create()); command.Subcommands.Add(KnowledgeUpdateKnowledgeGroupCommandApiCommand.Create()); command.Subcommands.Add(KnowledgeUploadKnowledgeGroupDocumentCommandApiCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/cli/Anam.CLI/Commands/KnowledgeCreateKnowledgeGroupCommandApiCommand.g.cs b/src/cli/Anam.CLI/Commands/KnowledgeCreateKnowledgeGroupCommandApiCommand.g.cs index fd4e61d..3d33fa2 100644 --- a/src/cli/Anam.CLI/Commands/KnowledgeCreateKnowledgeGroupCommandApiCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/KnowledgeCreateKnowledgeGroupCommandApiCommand.g.cs @@ -55,6 +55,8 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Knowl static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-knowledge-group", @"Create knowledge group @@ -104,6 +106,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/Anam.CLI/Commands/KnowledgeDeleteKnowledgeDocumentCommandApiCommand.g.cs b/src/cli/Anam.CLI/Commands/KnowledgeDeleteKnowledgeDocumentCommandApiCommand.g.cs index c3739f9..186fcb3 100644 --- a/src/cli/Anam.CLI/Commands/KnowledgeDeleteKnowledgeDocumentCommandApiCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/KnowledgeDeleteKnowledgeDocumentCommandApiCommand.g.cs @@ -13,6 +13,8 @@ internal static partial class KnowledgeDeleteKnowledgeDocumentCommandApiCommand Description = @"", }; + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"delete-knowledge-document", @"Delete knowledge document @@ -33,6 +35,7 @@ await client.Knowledge.DeleteKnowledgeDocumentAsync( await CliRuntime.WriteSuccessAsync(parseResult, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/cli/Anam.CLI/Commands/KnowledgeDeleteKnowledgeGroupCommandApiCommand.g.cs b/src/cli/Anam.CLI/Commands/KnowledgeDeleteKnowledgeGroupCommandApiCommand.g.cs index 3664e0f..958de9c 100644 --- a/src/cli/Anam.CLI/Commands/KnowledgeDeleteKnowledgeGroupCommandApiCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/KnowledgeDeleteKnowledgeGroupCommandApiCommand.g.cs @@ -13,6 +13,8 @@ internal static partial class KnowledgeDeleteKnowledgeGroupCommandApiCommand Description = @"", }; + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"delete-knowledge-group", @"Delete knowledge group @@ -33,6 +35,7 @@ await client.Knowledge.DeleteKnowledgeGroupAsync( await CliRuntime.WriteSuccessAsync(parseResult, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/cli/Anam.CLI/Commands/KnowledgeGetKnowledgeDocumentCommandApiCommand.g.cs b/src/cli/Anam.CLI/Commands/KnowledgeGetKnowledgeDocumentCommandApiCommand.g.cs index 1da56b5..8a72805 100644 --- a/src/cli/Anam.CLI/Commands/KnowledgeGetKnowledgeDocumentCommandApiCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/KnowledgeGetKnowledgeDocumentCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Knowl static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"get-knowledge-document", @"Get knowledge document @@ -59,6 +61,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/Anam.CLI/Commands/KnowledgeGetKnowledgeDocumentDownloadCommandApiCommand.g.cs b/src/cli/Anam.CLI/Commands/KnowledgeGetKnowledgeDocumentDownloadCommandApiCommand.g.cs index f118a6f..3a9d570 100644 --- a/src/cli/Anam.CLI/Commands/KnowledgeGetKnowledgeDocumentDownloadCommandApiCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/KnowledgeGetKnowledgeDocumentDownloadCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.GetKn static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"get-knowledge-document-download", @"Get knowledge document download @@ -59,6 +61,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/Anam.CLI/Commands/KnowledgeGetKnowledgeGroupCommandApiCommand.g.cs b/src/cli/Anam.CLI/Commands/KnowledgeGetKnowledgeGroupCommandApiCommand.g.cs index 8ba60b5..bc6d051 100644 --- a/src/cli/Anam.CLI/Commands/KnowledgeGetKnowledgeGroupCommandApiCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/KnowledgeGetKnowledgeGroupCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Knowl static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"get-knowledge-group", @"Get knowledge group @@ -59,6 +61,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/Anam.CLI/Commands/KnowledgeListKnowledgeGroupDocumentsCommandApiCommand.g.cs b/src/cli/Anam.CLI/Commands/KnowledgeListKnowledgeGroupDocumentsCommandApiCommand.g.cs index d700cfd..795b392 100644 --- a/src/cli/Anam.CLI/Commands/KnowledgeListKnowledgeGroupDocumentsCommandApiCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/KnowledgeListKnowledgeGroupDocumentsCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.ListK static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-knowledge-group-documents", @"List knowledge group documents @@ -67,6 +69,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/Anam.CLI/Commands/KnowledgeListKnowledgeGroupsCommandApiCommand.g.cs b/src/cli/Anam.CLI/Commands/KnowledgeListKnowledgeGroupsCommandApiCommand.g.cs index 38d295c..a25156d 100644 --- a/src/cli/Anam.CLI/Commands/KnowledgeListKnowledgeGroupsCommandApiCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/KnowledgeListKnowledgeGroupsCommandApiCommand.g.cs @@ -29,6 +29,8 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.ListK static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-knowledge-groups", @"List knowledge groups @@ -63,6 +65,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/Anam.CLI/Commands/KnowledgeSearchKnowledgeGroupCommandApiCommand.g.cs b/src/cli/Anam.CLI/Commands/KnowledgeSearchKnowledgeGroupCommandApiCommand.g.cs index ba67263..514b6ef 100644 --- a/src/cli/Anam.CLI/Commands/KnowledgeSearchKnowledgeGroupCommandApiCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/KnowledgeSearchKnowledgeGroupCommandApiCommand.g.cs @@ -62,6 +62,8 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Searc static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"search-knowledge-group", @"Search knowledge group @@ -122,6 +124,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/Anam.CLI/Commands/KnowledgeUpdateKnowledgeDocumentCommandApiCommand.g.cs b/src/cli/Anam.CLI/Commands/KnowledgeUpdateKnowledgeDocumentCommandApiCommand.g.cs index 2426f94..a424e4b 100644 --- a/src/cli/Anam.CLI/Commands/KnowledgeUpdateKnowledgeDocumentCommandApiCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/KnowledgeUpdateKnowledgeDocumentCommandApiCommand.g.cs @@ -55,6 +55,8 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Knowl static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"update-knowledge-document", @"Update knowledge document @@ -104,6 +106,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/Anam.CLI/Commands/KnowledgeUpdateKnowledgeGroupCommandApiCommand.g.cs b/src/cli/Anam.CLI/Commands/KnowledgeUpdateKnowledgeGroupCommandApiCommand.g.cs index fd33871..0ca561e 100644 --- a/src/cli/Anam.CLI/Commands/KnowledgeUpdateKnowledgeGroupCommandApiCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/KnowledgeUpdateKnowledgeGroupCommandApiCommand.g.cs @@ -61,6 +61,8 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Knowl static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"update-knowledge-group", @"Update knowledge group @@ -113,6 +115,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/Anam.CLI/Commands/KnowledgeUploadKnowledgeGroupDocumentCommandApiCommand.g.cs b/src/cli/Anam.CLI/Commands/KnowledgeUploadKnowledgeGroupDocumentCommandApiCommand.g.cs index d72dc12..7cce0c6 100644 --- a/src/cli/Anam.CLI/Commands/KnowledgeUploadKnowledgeGroupDocumentCommandApiCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/KnowledgeUploadKnowledgeGroupDocumentCommandApiCommand.g.cs @@ -75,6 +75,8 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Knowl static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"upload-knowledge-group-document", @"Upload knowledge group document @@ -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/Anam.CLI/Commands/LLMsApiGroupCommand.g.cs b/src/cli/Anam.CLI/Commands/LLMsApiGroupCommand.g.cs index 7da5099..39c4780 100644 --- a/src/cli/Anam.CLI/Commands/LLMsApiGroupCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/LLMsApiGroupCommand.g.cs @@ -4,8 +4,10 @@ namespace Anam.CLI.Commands; -internal static class LLMsApiGroupCommand +internal static partial class LLMsApiGroupCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"llms", @"LLMs endpoint commands."); @@ -14,6 +16,7 @@ public static Command Create() command.Subcommands.Add(LLMsGetLlmCommandApiCommand.Create()); command.Subcommands.Add(LLMsListLlmsCommandApiCommand.Create()); command.Subcommands.Add(LLMsUpdateLlmCommandApiCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/cli/Anam.CLI/Commands/LLMsCreateLlmCommandApiCommand.g.cs b/src/cli/Anam.CLI/Commands/LLMsCreateLlmCommandApiCommand.g.cs index ff9901c..95b7a64 100644 --- a/src/cli/Anam.CLI/Commands/LLMsCreateLlmCommandApiCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/LLMsCreateLlmCommandApiCommand.g.cs @@ -102,6 +102,8 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Llm v static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-llm", @"Create LLM @@ -172,6 +174,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/Anam.CLI/Commands/LLMsDeleteLlmCommandApiCommand.g.cs b/src/cli/Anam.CLI/Commands/LLMsDeleteLlmCommandApiCommand.g.cs index a400cab..e03ecda 100644 --- a/src/cli/Anam.CLI/Commands/LLMsDeleteLlmCommandApiCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/LLMsDeleteLlmCommandApiCommand.g.cs @@ -13,6 +13,8 @@ internal static partial class LLMsDeleteLlmCommandApiCommand Description = @"The LLM ID.", }; + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"delete-llm", @"Delete LLM @@ -33,6 +35,7 @@ await client.LLMs.DeleteLlmAsync( await CliRuntime.WriteSuccessAsync(parseResult, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/cli/Anam.CLI/Commands/LLMsGetLlmCommandApiCommand.g.cs b/src/cli/Anam.CLI/Commands/LLMsGetLlmCommandApiCommand.g.cs index 9a44ed0..26808bd 100644 --- a/src/cli/Anam.CLI/Commands/LLMsGetLlmCommandApiCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/LLMsGetLlmCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Llm v static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"get-llm", @"Get LLM @@ -59,6 +61,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/Anam.CLI/Commands/LLMsListLlmsCommandApiCommand.g.cs b/src/cli/Anam.CLI/Commands/LLMsListLlmsCommandApiCommand.g.cs index c47670d..e3e34ba 100644 --- a/src/cli/Anam.CLI/Commands/LLMsListLlmsCommandApiCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/LLMsListLlmsCommandApiCommand.g.cs @@ -49,6 +49,8 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.ListL static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-llms", @"List LLMs @@ -92,6 +94,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/Anam.CLI/Commands/LLMsUpdateLlmCommandApiCommand.g.cs b/src/cli/Anam.CLI/Commands/LLMsUpdateLlmCommandApiCommand.g.cs index fef97a3..4f5446b 100644 --- a/src/cli/Anam.CLI/Commands/LLMsUpdateLlmCommandApiCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/LLMsUpdateLlmCommandApiCommand.g.cs @@ -103,6 +103,8 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Llm v static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"update-llm", @"Update LLM @@ -176,6 +178,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/Anam.CLI/Commands/PersonasApiGroupCommand.g.cs b/src/cli/Anam.CLI/Commands/PersonasApiGroupCommand.g.cs index f7c87bc..63f31f1 100644 --- a/src/cli/Anam.CLI/Commands/PersonasApiGroupCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/PersonasApiGroupCommand.g.cs @@ -4,8 +4,10 @@ namespace Anam.CLI.Commands; -internal static class PersonasApiGroupCommand +internal static partial class PersonasApiGroupCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"personas", @"Personas endpoint commands."); @@ -14,6 +16,7 @@ public static Command Create() command.Subcommands.Add(PersonasGetPersonaCommandApiCommand.Create()); command.Subcommands.Add(PersonasListPersonasCommandApiCommand.Create()); command.Subcommands.Add(PersonasUpdatePersonaCommandApiCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/cli/Anam.CLI/Commands/PersonasCreatePersonaCommandApiCommand.g.cs b/src/cli/Anam.CLI/Commands/PersonasCreatePersonaCommandApiCommand.g.cs index fd593f2..f266c96 100644 --- a/src/cli/Anam.CLI/Commands/PersonasCreatePersonaCommandApiCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/PersonasCreatePersonaCommandApiCommand.g.cs @@ -47,6 +47,8 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Perso static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-persona", @"Create persona @@ -163,6 +165,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/Anam.CLI/Commands/PersonasDeletePersonaCommandApiCommand.g.cs b/src/cli/Anam.CLI/Commands/PersonasDeletePersonaCommandApiCommand.g.cs index d790d18..f0e4654 100644 --- a/src/cli/Anam.CLI/Commands/PersonasDeletePersonaCommandApiCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/PersonasDeletePersonaCommandApiCommand.g.cs @@ -13,6 +13,8 @@ internal static partial class PersonasDeletePersonaCommandApiCommand Description = @"Persona ID.", }; + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"delete-persona", @"Delete persona @@ -33,6 +35,7 @@ await client.Personas.DeletePersonaAsync( await CliRuntime.WriteSuccessAsync(parseResult, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/cli/Anam.CLI/Commands/PersonasGetPersonaCommandApiCommand.g.cs b/src/cli/Anam.CLI/Commands/PersonasGetPersonaCommandApiCommand.g.cs index 45cdd1b..fa5fc26 100644 --- a/src/cli/Anam.CLI/Commands/PersonasGetPersonaCommandApiCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/PersonasGetPersonaCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Perso static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"get-persona", @"Get persona @@ -67,6 +69,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/Anam.CLI/Commands/PersonasListPersonasCommandApiCommand.g.cs b/src/cli/Anam.CLI/Commands/PersonasListPersonasCommandApiCommand.g.cs index 46f3052..058f365 100644 --- a/src/cli/Anam.CLI/Commands/PersonasListPersonasCommandApiCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/PersonasListPersonasCommandApiCommand.g.cs @@ -45,6 +45,8 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.ListP static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-personas", @"List personas @@ -85,6 +87,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/Anam.CLI/Commands/PersonasUpdatePersonaCommandApiCommand.g.cs b/src/cli/Anam.CLI/Commands/PersonasUpdatePersonaCommandApiCommand.g.cs index 02196a3..de0e96c 100644 --- a/src/cli/Anam.CLI/Commands/PersonasUpdatePersonaCommandApiCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/PersonasUpdatePersonaCommandApiCommand.g.cs @@ -52,6 +52,8 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Perso static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"update-persona", @"Update persona @@ -170,6 +172,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/Anam.CLI/Commands/SessionsApiGroupCommand.g.cs b/src/cli/Anam.CLI/Commands/SessionsApiGroupCommand.g.cs index 4d75c16..d888435 100644 --- a/src/cli/Anam.CLI/Commands/SessionsApiGroupCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/SessionsApiGroupCommand.g.cs @@ -4,8 +4,10 @@ namespace Anam.CLI.Commands; -internal static class SessionsApiGroupCommand +internal static partial class SessionsApiGroupCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"sessions", @"Sessions endpoint commands."); @@ -13,6 +15,7 @@ public static Command Create() command.Subcommands.Add(SessionsGetSessionRecordingCommandApiCommand.Create()); command.Subcommands.Add(SessionsGetSessionTranscriptCommandApiCommand.Create()); command.Subcommands.Add(SessionsListSessionsCommandApiCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/cli/Anam.CLI/Commands/SessionsGetSessionCommandApiCommand.g.cs b/src/cli/Anam.CLI/Commands/SessionsGetSessionCommandApiCommand.g.cs index 9ff4ff6..0fbe28d 100644 --- a/src/cli/Anam.CLI/Commands/SessionsGetSessionCommandApiCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/SessionsGetSessionCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Sessi static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"get-session", @"Get session @@ -59,6 +61,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/Anam.CLI/Commands/SessionsGetSessionRecordingCommandApiCommand.g.cs b/src/cli/Anam.CLI/Commands/SessionsGetSessionRecordingCommandApiCommand.g.cs index cc092bd..afa61eb 100644 --- a/src/cli/Anam.CLI/Commands/SessionsGetSessionRecordingCommandApiCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/SessionsGetSessionRecordingCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.GetSe static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"get-session-recording", @"Get session recording @@ -59,6 +61,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/Anam.CLI/Commands/SessionsGetSessionTranscriptCommandApiCommand.g.cs b/src/cli/Anam.CLI/Commands/SessionsGetSessionTranscriptCommandApiCommand.g.cs index ac5d0a7..e29d85b 100644 --- a/src/cli/Anam.CLI/Commands/SessionsGetSessionTranscriptCommandApiCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/SessionsGetSessionTranscriptCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Sessi static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"get-session-transcript", @"Get session transcript @@ -67,6 +69,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/Anam.CLI/Commands/SessionsListSessionsCommandApiCommand.g.cs b/src/cli/Anam.CLI/Commands/SessionsListSessionsCommandApiCommand.g.cs index a82f827..a8b1608 100644 --- a/src/cli/Anam.CLI/Commands/SessionsListSessionsCommandApiCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/SessionsListSessionsCommandApiCommand.g.cs @@ -57,6 +57,8 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.ListS static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-sessions", @"List sessions @@ -103,6 +105,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/Anam.CLI/Commands/ShareLinksApiGroupCommand.g.cs b/src/cli/Anam.CLI/Commands/ShareLinksApiGroupCommand.g.cs index fd8c160..485e6f4 100644 --- a/src/cli/Anam.CLI/Commands/ShareLinksApiGroupCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/ShareLinksApiGroupCommand.g.cs @@ -4,8 +4,10 @@ namespace Anam.CLI.Commands; -internal static class ShareLinksApiGroupCommand +internal static partial class ShareLinksApiGroupCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"share-links", @"ShareLinks endpoint commands."); @@ -14,6 +16,7 @@ public static Command Create() command.Subcommands.Add(ShareLinksGetShareLinkCommandApiCommand.Create()); command.Subcommands.Add(ShareLinksListShareLinksCommandApiCommand.Create()); command.Subcommands.Add(ShareLinksUpdateShareLinkCommandApiCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/cli/Anam.CLI/Commands/ShareLinksCreateShareLinkCommandApiCommand.g.cs b/src/cli/Anam.CLI/Commands/ShareLinksCreateShareLinkCommandApiCommand.g.cs index 62e901d..73d7d8d 100644 --- a/src/cli/Anam.CLI/Commands/ShareLinksCreateShareLinkCommandApiCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/ShareLinksCreateShareLinkCommandApiCommand.g.cs @@ -62,6 +62,8 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Share static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-share-link", @"Create share link @@ -114,6 +116,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/Anam.CLI/Commands/ShareLinksDeleteShareLinkCommandApiCommand.g.cs b/src/cli/Anam.CLI/Commands/ShareLinksDeleteShareLinkCommandApiCommand.g.cs index ef700f4..222a4cf 100644 --- a/src/cli/Anam.CLI/Commands/ShareLinksDeleteShareLinkCommandApiCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/ShareLinksDeleteShareLinkCommandApiCommand.g.cs @@ -13,6 +13,8 @@ internal static partial class ShareLinksDeleteShareLinkCommandApiCommand Description = @"Share link ID.", }; + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"delete-share-link", @"Delete share link @@ -33,6 +35,7 @@ await client.ShareLinks.DeleteShareLinkAsync( await CliRuntime.WriteSuccessAsync(parseResult, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/cli/Anam.CLI/Commands/ShareLinksGetShareLinkCommandApiCommand.g.cs b/src/cli/Anam.CLI/Commands/ShareLinksGetShareLinkCommandApiCommand.g.cs index 7c2d7d5..57e2a36 100644 --- a/src/cli/Anam.CLI/Commands/ShareLinksGetShareLinkCommandApiCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/ShareLinksGetShareLinkCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Share static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"get-share-link", @"Get share link @@ -59,6 +61,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/Anam.CLI/Commands/ShareLinksListShareLinksCommandApiCommand.g.cs b/src/cli/Anam.CLI/Commands/ShareLinksListShareLinksCommandApiCommand.g.cs index debfb7f..792c29b 100644 --- a/src/cli/Anam.CLI/Commands/ShareLinksListShareLinksCommandApiCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/ShareLinksListShareLinksCommandApiCommand.g.cs @@ -51,6 +51,8 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.ListS static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-share-links", @"List share links @@ -94,6 +96,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/Anam.CLI/Commands/ShareLinksUpdateShareLinkCommandApiCommand.g.cs b/src/cli/Anam.CLI/Commands/ShareLinksUpdateShareLinkCommandApiCommand.g.cs index e9b418b..1b8231a 100644 --- a/src/cli/Anam.CLI/Commands/ShareLinksUpdateShareLinkCommandApiCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/ShareLinksUpdateShareLinkCommandApiCommand.g.cs @@ -61,6 +61,8 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Share static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"update-share-link", @"Update share link @@ -113,6 +115,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/Anam.CLI/Commands/ToolsApiGroupCommand.g.cs b/src/cli/Anam.CLI/Commands/ToolsApiGroupCommand.g.cs index 4b8c773..3a19e03 100644 --- a/src/cli/Anam.CLI/Commands/ToolsApiGroupCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/ToolsApiGroupCommand.g.cs @@ -4,8 +4,10 @@ namespace Anam.CLI.Commands; -internal static class ToolsApiGroupCommand +internal static partial class ToolsApiGroupCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"tools", @"Tools endpoint commands."); @@ -14,6 +16,7 @@ public static Command Create() command.Subcommands.Add(ToolsGetToolCommandApiCommand.Create()); command.Subcommands.Add(ToolsListToolsCommandApiCommand.Create()); command.Subcommands.Add(ToolsUpdateToolCommandApiCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/cli/Anam.CLI/Commands/ToolsCreateToolCommandApiCommand.g.cs b/src/cli/Anam.CLI/Commands/ToolsCreateToolCommandApiCommand.g.cs index afcf622..788dba2 100644 --- a/src/cli/Anam.CLI/Commands/ToolsCreateToolCommandApiCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/ToolsCreateToolCommandApiCommand.g.cs @@ -69,6 +69,8 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Tool static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-tool", @"Create tool @@ -124,6 +126,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/Anam.CLI/Commands/ToolsDeleteToolCommandApiCommand.g.cs b/src/cli/Anam.CLI/Commands/ToolsDeleteToolCommandApiCommand.g.cs index 86d9048..c0e2033 100644 --- a/src/cli/Anam.CLI/Commands/ToolsDeleteToolCommandApiCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/ToolsDeleteToolCommandApiCommand.g.cs @@ -13,6 +13,8 @@ internal static partial class ToolsDeleteToolCommandApiCommand Description = @"Tool ID.", }; + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"delete-tool", @"Delete tool @@ -33,6 +35,7 @@ await client.Tools.DeleteToolAsync( await CliRuntime.WriteSuccessAsync(parseResult, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/cli/Anam.CLI/Commands/ToolsGetToolCommandApiCommand.g.cs b/src/cli/Anam.CLI/Commands/ToolsGetToolCommandApiCommand.g.cs index 01acaf8..92c77b3 100644 --- a/src/cli/Anam.CLI/Commands/ToolsGetToolCommandApiCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/ToolsGetToolCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Tool static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"get-tool", @"Get tool @@ -59,6 +61,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/Anam.CLI/Commands/ToolsListToolsCommandApiCommand.g.cs b/src/cli/Anam.CLI/Commands/ToolsListToolsCommandApiCommand.g.cs index 9a9e5d4..ec519b9 100644 --- a/src/cli/Anam.CLI/Commands/ToolsListToolsCommandApiCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/ToolsListToolsCommandApiCommand.g.cs @@ -45,6 +45,8 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.ListT static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-tools", @"List tools @@ -85,6 +87,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/Anam.CLI/Commands/ToolsUpdateToolCommandApiCommand.g.cs b/src/cli/Anam.CLI/Commands/ToolsUpdateToolCommandApiCommand.g.cs index 264a272..769fe1a 100644 --- a/src/cli/Anam.CLI/Commands/ToolsUpdateToolCommandApiCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/ToolsUpdateToolCommandApiCommand.g.cs @@ -73,6 +73,8 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Tool static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"update-tool", @"Update tool @@ -131,6 +133,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/Anam.CLI/Commands/VoicesApiGroupCommand.g.cs b/src/cli/Anam.CLI/Commands/VoicesApiGroupCommand.g.cs index 3e7b61f..18a0fd5 100644 --- a/src/cli/Anam.CLI/Commands/VoicesApiGroupCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/VoicesApiGroupCommand.g.cs @@ -4,8 +4,10 @@ namespace Anam.CLI.Commands; -internal static class VoicesApiGroupCommand +internal static partial class VoicesApiGroupCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"voices", @"Voices endpoint commands."); @@ -14,6 +16,7 @@ public static Command Create() command.Subcommands.Add(VoicesGetVoiceCommandApiCommand.Create()); command.Subcommands.Add(VoicesListVoicesCommandApiCommand.Create()); command.Subcommands.Add(VoicesUpdateVoiceCommandApiCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/cli/Anam.CLI/Commands/VoicesCreateVoiceCommandApiCommand.g.cs b/src/cli/Anam.CLI/Commands/VoicesCreateVoiceCommandApiCommand.g.cs index 7243125..95807a5 100644 --- a/src/cli/Anam.CLI/Commands/VoicesCreateVoiceCommandApiCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/VoicesCreateVoiceCommandApiCommand.g.cs @@ -79,6 +79,8 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Voice static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-voice", @"Create voice @@ -140,6 +142,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/Anam.CLI/Commands/VoicesDeleteVoiceCommandApiCommand.g.cs b/src/cli/Anam.CLI/Commands/VoicesDeleteVoiceCommandApiCommand.g.cs index 01354bf..96346e9 100644 --- a/src/cli/Anam.CLI/Commands/VoicesDeleteVoiceCommandApiCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/VoicesDeleteVoiceCommandApiCommand.g.cs @@ -13,6 +13,8 @@ internal static partial class VoicesDeleteVoiceCommandApiCommand Description = @"Voice ID.", }; + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"delete-voice", @"Delete voice @@ -33,6 +35,7 @@ await client.Voices.DeleteVoiceAsync( await CliRuntime.WriteSuccessAsync(parseResult, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/cli/Anam.CLI/Commands/VoicesGetVoiceCommandApiCommand.g.cs b/src/cli/Anam.CLI/Commands/VoicesGetVoiceCommandApiCommand.g.cs index 8d7b90d..59633d0 100644 --- a/src/cli/Anam.CLI/Commands/VoicesGetVoiceCommandApiCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/VoicesGetVoiceCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Voice static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"get-voice", @"Get voice @@ -59,6 +61,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/Anam.CLI/Commands/VoicesListVoicesCommandApiCommand.g.cs b/src/cli/Anam.CLI/Commands/VoicesListVoicesCommandApiCommand.g.cs index 993c6f8..b0bed3a 100644 --- a/src/cli/Anam.CLI/Commands/VoicesListVoicesCommandApiCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/VoicesListVoicesCommandApiCommand.g.cs @@ -45,6 +45,8 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.ListV static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-voices", @"List voices @@ -85,6 +87,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/Anam.CLI/Commands/VoicesUpdateVoiceCommandApiCommand.g.cs b/src/cli/Anam.CLI/Commands/VoicesUpdateVoiceCommandApiCommand.g.cs index d9baaa7..e085f90 100644 --- a/src/cli/Anam.CLI/Commands/VoicesUpdateVoiceCommandApiCommand.g.cs +++ b/src/cli/Anam.CLI/Commands/VoicesUpdateVoiceCommandApiCommand.g.cs @@ -80,6 +80,8 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Voice static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"update-voice", @"Update voice @@ -141,6 +143,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/Anam.CLI/README.md b/src/cli/Anam.CLI/README.md index 8aa8bf8..600d616 100644 --- a/src/cli/Anam.CLI/README.md +++ b/src/cli/Anam.CLI/README.md @@ -13,4 +13,11 @@ dotnet tool install --global Anam.CLI --prerelease ```bash anam --help anam api --help -``` \ No newline at end of file +``` + +## 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