Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/cli/Anam.CLI/Commands/ApiCommand.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand All @@ -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;
}
}
5 changes: 4 additions & 1 deletion src/cli/Anam.CLI/Commands/AuthApiGroupCommand.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Creat
static partial void CustomizeResponseFormatHints(Dictionary<string, CliFormatHint> hints);


static partial void CustomizeCommand(ref Command command);

public static Command Create()
{
var command = new Command(@"create-session-token", @"Create session token
Expand Down Expand Up @@ -113,6 +115,7 @@ await CliRuntime.WriteResponseAsync(
FormatResponse,
cancellationToken).ConfigureAwait(false);
}, cancellationToken).ConfigureAwait(false));
CustomizeCommand(ref command);
return command;
}
}
5 changes: 4 additions & 1 deletion src/cli/Anam.CLI/Commands/AvatarsApiGroupCommand.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand All @@ -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;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Avata
static partial void CustomizeResponseFormatHints(Dictionary<string, CliFormatHint> hints);


static partial void CustomizeCommand(ref Command command);

public static Command Create()
{
var command = new Command(@"create-avatar", @"Create avatar
Expand Down Expand Up @@ -123,6 +125,7 @@ await CliRuntime.WriteResponseAsync(
FormatResponse,
cancellationToken).ConfigureAwait(false);
}, cancellationToken).ConfigureAwait(false));
CustomizeCommand(ref command);
return command;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -33,6 +35,7 @@ await client.Avatars.DeleteAvatarAsync(

await CliRuntime.WriteSuccessAsync(parseResult, cancellationToken).ConfigureAwait(false);
}, cancellationToken).ConfigureAwait(false));
CustomizeCommand(ref command);
return command;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Avata
static partial void CustomizeResponseFormatHints(Dictionary<string, CliFormatHint> hints);


static partial void CustomizeCommand(ref Command command);

public static Command Create()
{
var command = new Command(@"get-avatar", @"Get avatar
Expand All @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync(
FormatResponse,
cancellationToken).ConfigureAwait(false);
}, cancellationToken).ConfigureAwait(false));
CustomizeCommand(ref command);
return command;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.ListA
static partial void CustomizeResponseFormatHints(Dictionary<string, CliFormatHint> hints);


static partial void CustomizeCommand(ref Command command);

public static Command Create()
{
var command = new Command(@"list-avatars", @"List avatars
Expand Down Expand Up @@ -92,6 +94,7 @@ await CliRuntime.WriteResponseAsync(
cancellationToken).ConfigureAwait(false);
}
}, cancellationToken).ConfigureAwait(false));
CustomizeCommand(ref command);
return command;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Avata
static partial void CustomizeResponseFormatHints(Dictionary<string, CliFormatHint> hints);


static partial void CustomizeCommand(ref Command command);

public static Command Create()
{
var command = new Command(@"update-avatar", @"Update avatar
Expand Down Expand Up @@ -69,6 +71,7 @@ await CliRuntime.WriteResponseAsync(
FormatResponse,
cancellationToken).ConfigureAwait(false);
}, cancellationToken).ConfigureAwait(false));
CustomizeCommand(ref command);
return command;
}
}
5 changes: 4 additions & 1 deletion src/cli/Anam.CLI/Commands/KnowledgeApiGroupCommand.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand All @@ -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;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Knowl
static partial void CustomizeResponseFormatHints(Dictionary<string, CliFormatHint> hints);


static partial void CustomizeCommand(ref Command command);

public static Command Create()
{
var command = new Command(@"create-knowledge-group", @"Create knowledge group
Expand Down Expand Up @@ -104,6 +106,7 @@ await CliRuntime.WriteResponseAsync(
FormatResponse,
cancellationToken).ConfigureAwait(false);
}, cancellationToken).ConfigureAwait(false));
CustomizeCommand(ref command);
return command;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -33,6 +35,7 @@ await client.Knowledge.DeleteKnowledgeDocumentAsync(

await CliRuntime.WriteSuccessAsync(parseResult, cancellationToken).ConfigureAwait(false);
}, cancellationToken).ConfigureAwait(false));
CustomizeCommand(ref command);
return command;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -33,6 +35,7 @@ await client.Knowledge.DeleteKnowledgeGroupAsync(

await CliRuntime.WriteSuccessAsync(parseResult, cancellationToken).ConfigureAwait(false);
}, cancellationToken).ConfigureAwait(false));
CustomizeCommand(ref command);
return command;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Knowl
static partial void CustomizeResponseFormatHints(Dictionary<string, CliFormatHint> hints);


static partial void CustomizeCommand(ref Command command);

public static Command Create()
{
var command = new Command(@"get-knowledge-document", @"Get knowledge document
Expand All @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync(
FormatResponse,
cancellationToken).ConfigureAwait(false);
}, cancellationToken).ConfigureAwait(false));
CustomizeCommand(ref command);
return command;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.GetKn
static partial void CustomizeResponseFormatHints(Dictionary<string, CliFormatHint> hints);


static partial void CustomizeCommand(ref Command command);

public static Command Create()
{
var command = new Command(@"get-knowledge-document-download", @"Get knowledge document download
Expand All @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync(
FormatResponse,
cancellationToken).ConfigureAwait(false);
}, cancellationToken).ConfigureAwait(false));
CustomizeCommand(ref command);
return command;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Knowl
static partial void CustomizeResponseFormatHints(Dictionary<string, CliFormatHint> hints);


static partial void CustomizeCommand(ref Command command);

public static Command Create()
{
var command = new Command(@"get-knowledge-group", @"Get knowledge group
Expand All @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync(
FormatResponse,
cancellationToken).ConfigureAwait(false);
}, cancellationToken).ConfigureAwait(false));
CustomizeCommand(ref command);
return command;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.ListK
static partial void CustomizeResponseFormatHints(Dictionary<string, CliFormatHint> hints);


static partial void CustomizeCommand(ref Command command);

public static Command Create()
{
var command = new Command(@"list-knowledge-group-documents", @"List knowledge group documents
Expand Down Expand Up @@ -67,6 +69,7 @@ await CliRuntime.WriteResponseAsync(
cancellationToken).ConfigureAwait(false);
}
}, cancellationToken).ConfigureAwait(false));
CustomizeCommand(ref command);
return command;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.ListK
static partial void CustomizeResponseFormatHints(Dictionary<string, CliFormatHint> hints);


static partial void CustomizeCommand(ref Command command);

public static Command Create()
{
var command = new Command(@"list-knowledge-groups", @"List knowledge groups
Expand Down Expand Up @@ -63,6 +65,7 @@ await CliRuntime.WriteResponseAsync(
cancellationToken).ConfigureAwait(false);
}
}, cancellationToken).ConfigureAwait(false));
CustomizeCommand(ref command);
return command;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Searc
static partial void CustomizeResponseFormatHints(Dictionary<string, CliFormatHint> hints);


static partial void CustomizeCommand(ref Command command);

public static Command Create()
{
var command = new Command(@"search-knowledge-group", @"Search knowledge group
Expand Down Expand Up @@ -122,6 +124,7 @@ await CliRuntime.WriteResponseAsync(
cancellationToken).ConfigureAwait(false);
}
}, cancellationToken).ConfigureAwait(false));
CustomizeCommand(ref command);
return command;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Knowl
static partial void CustomizeResponseFormatHints(Dictionary<string, CliFormatHint> hints);


static partial void CustomizeCommand(ref Command command);

public static Command Create()
{
var command = new Command(@"update-knowledge-document", @"Update knowledge document
Expand Down Expand Up @@ -104,6 +106,7 @@ await CliRuntime.WriteResponseAsync(
FormatResponse,
cancellationToken).ConfigureAwait(false);
}, cancellationToken).ConfigureAwait(false));
CustomizeCommand(ref command);
return command;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Knowl
static partial void CustomizeResponseFormatHints(Dictionary<string, CliFormatHint> hints);


static partial void CustomizeCommand(ref Command command);

public static Command Create()
{
var command = new Command(@"update-knowledge-group", @"Update knowledge group
Expand Down Expand Up @@ -113,6 +115,7 @@ await CliRuntime.WriteResponseAsync(
FormatResponse,
cancellationToken).ConfigureAwait(false);
}, cancellationToken).ConfigureAwait(false));
CustomizeCommand(ref command);
return command;
}
}
Loading
Loading