diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/AvatarVideosCreateAvatarVideosCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/AvatarVideosCreateAvatarVideosCommandApiCommand.g.cs index 86b8f2f..222b218 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/AvatarVideosCreateAvatarVideosCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/AvatarVideosCreateAvatarVideosCommandApiCommand.g.cs @@ -1,4 +1,5 @@ #nullable enable +#pragma warning disable CS0618 using System.CommandLine; diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/AvatarsCreateAvatarsCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/AvatarsCreateAvatarsCommandApiCommand.g.cs index db9fbae..b63bda8 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/AvatarsCreateAvatarsCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/AvatarsCreateAvatarsCommandApiCommand.g.cs @@ -1,4 +1,5 @@ #nullable enable +#pragma warning disable CS0618 using System.CommandLine; @@ -57,18 +58,18 @@ internal static partial class AvatarsCreateAvatarsCommandApiCommand { Description = @"Controls image preprocessing. `optimize` improves the image for better avatar results. `none` uses the image as-is; quality not guaranteed.", }; - private static Option Input { get; } = new("--input") + private static Option Input { get; } = new(@"--input") { Description = "Load request JSON from a file path, '-' for stdin, or an inline JSON object/array string.", }; - private static Option RequestJson { get; } = new("--request-json") + private static Option RequestJson { get; } = new(@"--request-json") { Description = "Request body as JSON.", Hidden = true, }; - private static Option RequestFile { get; } = new("--request-file") + private static Option RequestFile { get; } = new(@"--request-file") { Description = "Path to a JSON request file, or '-' for stdin.", Hidden = true, @@ -117,7 +118,7 @@ public static Command Create() var specifiedCount = (hasInput ? 1 : 0) + (hasRequestJson ? 1 : 0) + (hasRequestFile ? 1 : 0); if (specifiedCount > 1) { - result.AddError("Specify at most one of --input, --request-json, or --request-file."); + result.AddError(@"Specify at most one of --input, --request-json, or --request-file."); } }); @@ -135,10 +136,10 @@ await CliRuntime.RunAsync(async () => var xRunwayVersion = parseResult.GetRequiredValue(XRunwayVersion); var referenceImage = parseResult.GetRequiredValue(ReferenceImage); var personality = parseResult.GetRequiredValue(Personality); - var startScript = parseResult.GetValue(StartScript) ?? __requestBase?.StartScript; + var startScript = CliRuntime.WasSpecified(parseResult, StartScript) ? parseResult.GetValue(StartScript) : __requestBase is not null ? __requestBase.StartScript : default; var voice = parseResult.GetRequiredValue(Voice); - var documentIds = parseResult.GetValue(DocumentIds) ?? __requestBase?.DocumentIds; - var imageProcessing = parseResult.GetValue(ImageProcessing) ?? __requestBase?.ImageProcessing; + var documentIds = CliRuntime.WasSpecified(parseResult, DocumentIds) ? parseResult.GetValue(DocumentIds) : __requestBase is not null ? __requestBase.DocumentIds : default; + var imageProcessing = CliRuntime.WasSpecified(parseResult, ImageProcessing) ? parseResult.GetValue(ImageProcessing) : __requestBase is not null ? __requestBase.ImageProcessing : default; using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/AvatarsDeleteAvatarConversationsByIdCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/AvatarsDeleteAvatarConversationsByIdCommandApiCommand.g.cs index 3ef1e53..40d4472 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/AvatarsDeleteAvatarConversationsByIdCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/AvatarsDeleteAvatarConversationsByIdCommandApiCommand.g.cs @@ -1,4 +1,5 @@ #nullable enable +#pragma warning disable CS0618 using System.CommandLine; diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/AvatarsDeleteAvatarsByIdCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/AvatarsDeleteAvatarsByIdCommandApiCommand.g.cs index 11b94b5..1557263 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/AvatarsDeleteAvatarsByIdCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/AvatarsDeleteAvatarsByIdCommandApiCommand.g.cs @@ -1,4 +1,5 @@ #nullable enable +#pragma warning disable CS0618 using System.CommandLine; diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/AvatarsEditAvatarsByIdCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/AvatarsEditAvatarsByIdCommandApiCommand.g.cs index 7a4fdd0..d0f5535 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/AvatarsEditAvatarsByIdCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/AvatarsEditAvatarsByIdCommandApiCommand.g.cs @@ -1,4 +1,5 @@ #nullable enable +#pragma warning disable CS0618 using System.CommandLine; @@ -60,18 +61,18 @@ internal static partial class AvatarsEditAvatarsByIdCommandApiCommand { Description = @"Controls image preprocessing. `optimize` improves the image for better avatar results. `none` uses the image as-is; quality not guaranteed.", }; - private static Option Input { get; } = new("--input") + private static Option Input { get; } = new(@"--input") { Description = "Load request JSON from a file path, '-' for stdin, or an inline JSON object/array string.", }; - private static Option RequestJson { get; } = new("--request-json") + private static Option RequestJson { get; } = new(@"--request-json") { Description = "Request body as JSON.", Hidden = true, }; - private static Option RequestFile { get; } = new("--request-file") + private static Option RequestFile { get; } = new(@"--request-file") { Description = "Path to a JSON request file, or '-' for stdin.", Hidden = true, @@ -121,7 +122,7 @@ public static Command Create() var specifiedCount = (hasInput ? 1 : 0) + (hasRequestJson ? 1 : 0) + (hasRequestFile ? 1 : 0); if (specifiedCount > 1) { - result.AddError("Specify at most one of --input, --request-json, or --request-file."); + result.AddError(@"Specify at most one of --input, --request-json, or --request-file."); } }); @@ -137,13 +138,13 @@ await CliRuntime.RunAsync(async () => cancellationToken).ConfigureAwait(false); var id = parseResult.GetRequiredValue(Id); var xRunwayVersion = parseResult.GetRequiredValue(XRunwayVersion); - var name = parseResult.GetValue(NameOption) ?? __requestBase?.Name; - var referenceImage = parseResult.GetValue(ReferenceImage) ?? __requestBase?.ReferenceImage; - var personality = parseResult.GetValue(Personality) ?? __requestBase?.Personality; - var startScript = parseResult.GetValue(StartScript) ?? __requestBase?.StartScript; - var voice = parseResult.GetValue(Voice) ?? __requestBase?.Voice; - var documentIds = parseResult.GetValue(DocumentIds) ?? __requestBase?.DocumentIds; - var imageProcessing = parseResult.GetValue(ImageProcessing) ?? __requestBase?.ImageProcessing; + var name = CliRuntime.WasSpecified(parseResult, NameOption) ? parseResult.GetValue(NameOption) : __requestBase is not null ? __requestBase.Name : default; + var referenceImage = CliRuntime.WasSpecified(parseResult, ReferenceImage) ? parseResult.GetValue(ReferenceImage) : __requestBase is not null ? __requestBase.ReferenceImage : default; + var personality = CliRuntime.WasSpecified(parseResult, Personality) ? parseResult.GetValue(Personality) : __requestBase is not null ? __requestBase.Personality : default; + var startScript = CliRuntime.WasSpecified(parseResult, StartScript) ? parseResult.GetValue(StartScript) : __requestBase is not null ? __requestBase.StartScript : default; + var voice = CliRuntime.WasSpecified(parseResult, Voice) ? parseResult.GetValue(Voice) : __requestBase is not null ? __requestBase.Voice : default; + var documentIds = CliRuntime.WasSpecified(parseResult, DocumentIds) ? parseResult.GetValue(DocumentIds) : __requestBase is not null ? __requestBase.DocumentIds : default; + var imageProcessing = CliRuntime.WasSpecified(parseResult, ImageProcessing) ? parseResult.GetValue(ImageProcessing) : __requestBase is not null ? __requestBase.ImageProcessing : default; using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/AvatarsGetAvatarConversationsByIdCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/AvatarsGetAvatarConversationsByIdCommandApiCommand.g.cs index 6fed349..a313ee1 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/AvatarsGetAvatarConversationsByIdCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/AvatarsGetAvatarConversationsByIdCommandApiCommand.g.cs @@ -1,4 +1,5 @@ #nullable enable +#pragma warning disable CS0618 using System.CommandLine; diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/AvatarsGetAvatarConversationsCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/AvatarsGetAvatarConversationsCommandApiCommand.g.cs index 7dfb525..3be5fbe 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/AvatarsGetAvatarConversationsCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/AvatarsGetAvatarConversationsCommandApiCommand.g.cs @@ -1,4 +1,5 @@ #nullable enable +#pragma warning disable CS0618 using System.CommandLine; diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/AvatarsGetAvatarUsageCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/AvatarsGetAvatarUsageCommandApiCommand.g.cs index 00fed3f..a5b572e 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/AvatarsGetAvatarUsageCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/AvatarsGetAvatarUsageCommandApiCommand.g.cs @@ -1,4 +1,5 @@ #nullable enable +#pragma warning disable CS0618 using System.CommandLine; diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/AvatarsGetAvatarsByIdCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/AvatarsGetAvatarsByIdCommandApiCommand.g.cs index b223657..9d32850 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/AvatarsGetAvatarsByIdCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/AvatarsGetAvatarsByIdCommandApiCommand.g.cs @@ -1,4 +1,5 @@ #nullable enable +#pragma warning disable CS0618 using System.CommandLine; diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/AvatarsGetAvatarsCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/AvatarsGetAvatarsCommandApiCommand.g.cs index b10b45b..753fed2 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/AvatarsGetAvatarsCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/AvatarsGetAvatarsCommandApiCommand.g.cs @@ -1,4 +1,5 @@ #nullable enable +#pragma warning disable CS0618 using System.CommandLine; diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/KnowledgeCreateDocumentsCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/KnowledgeCreateDocumentsCommandApiCommand.g.cs index 50d9ad4..2bdf236 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/KnowledgeCreateDocumentsCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/KnowledgeCreateDocumentsCommandApiCommand.g.cs @@ -1,4 +1,5 @@ #nullable enable +#pragma warning disable CS0618 using System.CommandLine; diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/KnowledgeDeleteDocumentsByIdCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/KnowledgeDeleteDocumentsByIdCommandApiCommand.g.cs index adbccbb..1d85afe 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/KnowledgeDeleteDocumentsByIdCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/KnowledgeDeleteDocumentsByIdCommandApiCommand.g.cs @@ -1,4 +1,5 @@ #nullable enable +#pragma warning disable CS0618 using System.CommandLine; diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/KnowledgeEditDocumentsByIdCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/KnowledgeEditDocumentsByIdCommandApiCommand.g.cs index 4fd3de5..e7dafcf 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/KnowledgeEditDocumentsByIdCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/KnowledgeEditDocumentsByIdCommandApiCommand.g.cs @@ -1,4 +1,5 @@ #nullable enable +#pragma warning disable CS0618 using System.CommandLine; @@ -30,18 +31,18 @@ internal static partial class KnowledgeEditDocumentsByIdCommandApiCommand { Description = @"New markdown or plain text content for the document.", }; - private static Option Input { get; } = new("--input") + private static Option Input { get; } = new(@"--input") { Description = "Load request JSON from a file path, '-' for stdin, or an inline JSON object/array string.", }; - private static Option RequestJson { get; } = new("--request-json") + private static Option RequestJson { get; } = new(@"--request-json") { Description = "Request body as JSON.", Hidden = true, }; - private static Option RequestFile { get; } = new("--request-file") + private static Option RequestFile { get; } = new(@"--request-file") { Description = "Path to a JSON request file, or '-' for stdin.", Hidden = true, @@ -66,7 +67,7 @@ public static Command Create() var specifiedCount = (hasInput ? 1 : 0) + (hasRequestJson ? 1 : 0) + (hasRequestFile ? 1 : 0); if (specifiedCount > 1) { - result.AddError("Specify at most one of --input, --request-json, or --request-file."); + result.AddError(@"Specify at most one of --input, --request-json, or --request-file."); } }); @@ -82,8 +83,8 @@ await CliRuntime.RunAsync(async () => cancellationToken).ConfigureAwait(false); var id = parseResult.GetRequiredValue(Id); var xRunwayVersion = parseResult.GetRequiredValue(XRunwayVersion); - var name = parseResult.GetValue(NameOption) ?? __requestBase?.Name; - var content = parseResult.GetValue(Content) ?? __requestBase?.Content; + var name = CliRuntime.WasSpecified(parseResult, NameOption) ? parseResult.GetValue(NameOption) : __requestBase is not null ? __requestBase.Name : default; + var content = CliRuntime.WasSpecified(parseResult, Content) ? parseResult.GetValue(Content) : __requestBase is not null ? __requestBase.Content : default; using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/KnowledgeGetDocumentsByIdCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/KnowledgeGetDocumentsByIdCommandApiCommand.g.cs index 0ec00c7..1647a48 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/KnowledgeGetDocumentsByIdCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/KnowledgeGetDocumentsByIdCommandApiCommand.g.cs @@ -1,4 +1,5 @@ #nullable enable +#pragma warning disable CS0618 using System.CommandLine; diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/KnowledgeGetDocumentsCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/KnowledgeGetDocumentsCommandApiCommand.g.cs index 54fdfec..b49f135 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/KnowledgeGetDocumentsCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/KnowledgeGetDocumentsCommandApiCommand.g.cs @@ -1,4 +1,5 @@ #nullable enable +#pragma warning disable CS0618 using System.CommandLine; diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/OrganizationCreateOrganizationUsageCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/OrganizationCreateOrganizationUsageCommandApiCommand.g.cs index cdb9ee3..0b43dda 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/OrganizationCreateOrganizationUsageCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/OrganizationCreateOrganizationUsageCommandApiCommand.g.cs @@ -1,4 +1,5 @@ #nullable enable +#pragma warning disable CS0618 using System.CommandLine; @@ -24,18 +25,18 @@ internal static partial class OrganizationCreateOrganizationUsageCommandApiComma { Description = @"The end date of the usage data in ISO-8601 format (YYYY-MM-DD), not inclusive. If unspecified, it will default to thirty days after the start date. Must be less than or equal to 90 days after the start date. All dates are in UTC.", }; - private static Option Input { get; } = new("--input") + private static Option Input { get; } = new(@"--input") { Description = "Load request JSON from a file path, '-' for stdin, or an inline JSON object/array string.", }; - private static Option RequestJson { get; } = new("--request-json") + private static Option RequestJson { get; } = new(@"--request-json") { Description = "Request body as JSON.", Hidden = true, }; - private static Option RequestFile { get; } = new("--request-file") + private static Option RequestFile { get; } = new(@"--request-file") { Description = "Path to a JSON request file, or '-' for stdin.", Hidden = true, @@ -79,7 +80,7 @@ public static Command Create() var specifiedCount = (hasInput ? 1 : 0) + (hasRequestJson ? 1 : 0) + (hasRequestFile ? 1 : 0); if (specifiedCount > 1) { - result.AddError("Specify at most one of --input, --request-json, or --request-file."); + result.AddError(@"Specify at most one of --input, --request-json, or --request-file."); } }); @@ -94,8 +95,8 @@ await CliRuntime.RunAsync(async () => global::Runway.SourceGenerationContext.Default, cancellationToken).ConfigureAwait(false); var xRunwayVersion = parseResult.GetRequiredValue(XRunwayVersion); - var startDate = parseResult.GetValue(StartDate) ?? __requestBase?.StartDate; - var beforeDate = parseResult.GetValue(BeforeDate) ?? __requestBase?.BeforeDate; + var startDate = CliRuntime.WasSpecified(parseResult, StartDate) ? parseResult.GetValue(StartDate) : __requestBase is not null ? __requestBase.StartDate : default; + var beforeDate = CliRuntime.WasSpecified(parseResult, BeforeDate) ? parseResult.GetValue(BeforeDate) : __requestBase is not null ? __requestBase.BeforeDate : default; using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/OrganizationGetOrganizationCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/OrganizationGetOrganizationCommandApiCommand.g.cs index e3399ba..a55f344 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/OrganizationGetOrganizationCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/OrganizationGetOrganizationCommandApiCommand.g.cs @@ -1,4 +1,5 @@ #nullable enable +#pragma warning disable CS0618 using System.CommandLine; diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/RealtimeSessionsCreateRealtimeSessionsCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/RealtimeSessionsCreateRealtimeSessionsCommandApiCommand.g.cs index 3a0a166..b7d74f2 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/RealtimeSessionsCreateRealtimeSessionsCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/RealtimeSessionsCreateRealtimeSessionsCommandApiCommand.g.cs @@ -1,4 +1,5 @@ #nullable enable +#pragma warning disable CS0618 using System.CommandLine; @@ -50,18 +51,18 @@ internal static partial class RealtimeSessionsCreateRealtimeSessionsCommandApiCo { Description = @"Tools available to the avatar during the session.", }; - private static Option Input { get; } = new("--input") + private static Option Input { get; } = new(@"--input") { Description = "Load request JSON from a file path, '-' for stdin, or an inline JSON object/array string.", }; - private static Option RequestJson { get; } = new("--request-json") + private static Option RequestJson { get; } = new(@"--request-json") { Description = "Request body as JSON.", Hidden = true, }; - private static Option RequestFile { get; } = new("--request-file") + private static Option RequestFile { get; } = new(@"--request-file") { Description = "Path to a JSON request file, or '-' for stdin.", Hidden = true, @@ -109,7 +110,7 @@ public static Command Create() var specifiedCount = (hasInput ? 1 : 0) + (hasRequestJson ? 1 : 0) + (hasRequestFile ? 1 : 0); if (specifiedCount > 1) { - result.AddError("Specify at most one of --input, --request-json, or --request-file."); + result.AddError(@"Specify at most one of --input, --request-json, or --request-file."); } }); @@ -126,10 +127,10 @@ await CliRuntime.RunAsync(async () => var xRunwayVersion = parseResult.GetRequiredValue(XRunwayVersion); var model = parseResult.GetRequiredValue(Model); var avatar = parseResult.GetRequiredValue(Avatar); - var maxDuration = parseResult.GetValue(MaxDuration) ?? __requestBase?.MaxDuration; - var personality = parseResult.GetValue(Personality) ?? __requestBase?.Personality; - var startScript = parseResult.GetValue(StartScript) ?? __requestBase?.StartScript; - var tools = parseResult.GetValue(Tools) ?? __requestBase?.Tools; + var maxDuration = CliRuntime.WasSpecified(parseResult, MaxDuration) ? parseResult.GetValue(MaxDuration) : __requestBase is not null ? __requestBase.MaxDuration : default; + var personality = CliRuntime.WasSpecified(parseResult, Personality) ? parseResult.GetValue(Personality) : __requestBase is not null ? __requestBase.Personality : default; + var startScript = CliRuntime.WasSpecified(parseResult, StartScript) ? parseResult.GetValue(StartScript) : __requestBase is not null ? __requestBase.StartScript : default; + var tools = CliRuntime.WasSpecified(parseResult, Tools) ? parseResult.GetValue(Tools) : __requestBase is not null ? __requestBase.Tools : default; using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/RealtimeSessionsDeleteRealtimeSessionsByIdCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/RealtimeSessionsDeleteRealtimeSessionsByIdCommandApiCommand.g.cs index e024f97..2d5bc80 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/RealtimeSessionsDeleteRealtimeSessionsByIdCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/RealtimeSessionsDeleteRealtimeSessionsByIdCommandApiCommand.g.cs @@ -1,4 +1,5 @@ #nullable enable +#pragma warning disable CS0618 using System.CommandLine; diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/RealtimeSessionsGetRealtimeSessionsByIdCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/RealtimeSessionsGetRealtimeSessionsByIdCommandApiCommand.g.cs index 009577a..b0e0c96 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/RealtimeSessionsGetRealtimeSessionsByIdCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/RealtimeSessionsGetRealtimeSessionsByIdCommandApiCommand.g.cs @@ -1,4 +1,5 @@ #nullable enable +#pragma warning disable CS0618 using System.CommandLine; diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/StartGeneratingCreateCharacterPerformanceCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/StartGeneratingCreateCharacterPerformanceCommandApiCommand.g.cs index 043578e..e8a4252 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/StartGeneratingCreateCharacterPerformanceCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/StartGeneratingCreateCharacterPerformanceCommandApiCommand.g.cs @@ -1,4 +1,5 @@ #nullable enable +#pragma warning disable CS0618 using System.CommandLine; @@ -12,18 +13,18 @@ internal static partial class StartGeneratingCreateCharacterPerformanceCommandAp Description = @"The version of the RunwayML API being used. You can read more about versioning [here](/api-details/versioning).", DefaultValueFactory = _ => "2024-11-06", }; - private static Option Input { get; } = new("--input") + private static Option Input { get; } = new(@"--input") { Description = "Load request JSON from a file path, '-' for stdin, or an inline JSON object/array string.", }; - private static Option RequestJson { get; } = new("--request-json") + private static Option RequestJson { get; } = new(@"--request-json") { Description = "Request body as JSON.", Hidden = true, }; - private static Option RequestFile { get; } = new("--request-file") + private static Option RequestFile { get; } = new(@"--request-file") { Description = "Path to a JSON request file, or '-' for stdin.", Hidden = true, @@ -65,7 +66,7 @@ public static Command Create() var specifiedCount = (hasInput ? 1 : 0) + (hasRequestJson ? 1 : 0) + (hasRequestFile ? 1 : 0); if (specifiedCount != 1) { - result.AddError("Specify exactly one of --input, --request-json, or --request-file."); + result.AddError(@"Specify exactly one of --input, --request-json, or --request-file."); } }); diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/StartGeneratingCreateImageToVideoCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/StartGeneratingCreateImageToVideoCommandApiCommand.g.cs index 4cf27a8..0eba407 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/StartGeneratingCreateImageToVideoCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/StartGeneratingCreateImageToVideoCommandApiCommand.g.cs @@ -1,4 +1,5 @@ #nullable enable +#pragma warning disable CS0618 using System.CommandLine; @@ -12,18 +13,18 @@ internal static partial class StartGeneratingCreateImageToVideoCommandApiCommand Description = @"The version of the RunwayML API being used. You can read more about versioning [here](/api-details/versioning).", DefaultValueFactory = _ => "2024-11-06", }; - private static Option Input { get; } = new("--input") + private static Option Input { get; } = new(@"--input") { Description = "Load request JSON from a file path, '-' for stdin, or an inline JSON object/array string.", }; - private static Option RequestJson { get; } = new("--request-json") + private static Option RequestJson { get; } = new(@"--request-json") { Description = "Request body as JSON.", Hidden = true, }; - private static Option RequestFile { get; } = new("--request-file") + private static Option RequestFile { get; } = new(@"--request-file") { Description = "Path to a JSON request file, or '-' for stdin.", Hidden = true, @@ -65,7 +66,7 @@ public static Command Create() var specifiedCount = (hasInput ? 1 : 0) + (hasRequestJson ? 1 : 0) + (hasRequestFile ? 1 : 0); if (specifiedCount != 1) { - result.AddError("Specify exactly one of --input, --request-json, or --request-file."); + result.AddError(@"Specify exactly one of --input, --request-json, or --request-file."); } }); diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/StartGeneratingCreateImageUpscaleCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/StartGeneratingCreateImageUpscaleCommandApiCommand.g.cs index 428e9ec..bdef8e9 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/StartGeneratingCreateImageUpscaleCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/StartGeneratingCreateImageUpscaleCommandApiCommand.g.cs @@ -1,4 +1,5 @@ #nullable enable +#pragma warning disable CS0618 using System.CommandLine; @@ -12,18 +13,18 @@ internal static partial class StartGeneratingCreateImageUpscaleCommandApiCommand Description = @"The version of the RunwayML API being used. You can read more about versioning [here](/api-details/versioning).", DefaultValueFactory = _ => "2024-11-06", }; - private static Option Input { get; } = new("--input") + private static Option Input { get; } = new(@"--input") { Description = "Load request JSON from a file path, '-' for stdin, or an inline JSON object/array string.", }; - private static Option RequestJson { get; } = new("--request-json") + private static Option RequestJson { get; } = new(@"--request-json") { Description = "Request body as JSON.", Hidden = true, }; - private static Option RequestFile { get; } = new("--request-file") + private static Option RequestFile { get; } = new(@"--request-file") { Description = "Path to a JSON request file, or '-' for stdin.", Hidden = true, @@ -65,7 +66,7 @@ public static Command Create() var specifiedCount = (hasInput ? 1 : 0) + (hasRequestJson ? 1 : 0) + (hasRequestFile ? 1 : 0); if (specifiedCount != 1) { - result.AddError("Specify exactly one of --input, --request-json, or --request-file."); + result.AddError(@"Specify exactly one of --input, --request-json, or --request-file."); } }); diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/StartGeneratingCreateSoundEffectCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/StartGeneratingCreateSoundEffectCommandApiCommand.g.cs index 93ad748..033a718 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/StartGeneratingCreateSoundEffectCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/StartGeneratingCreateSoundEffectCommandApiCommand.g.cs @@ -1,4 +1,5 @@ #nullable enable +#pragma warning disable CS0618 using System.CommandLine; @@ -12,18 +13,18 @@ internal static partial class StartGeneratingCreateSoundEffectCommandApiCommand Description = @"The version of the RunwayML API being used. You can read more about versioning [here](/api-details/versioning).", DefaultValueFactory = _ => "2024-11-06", }; - private static Option Input { get; } = new("--input") + private static Option Input { get; } = new(@"--input") { Description = "Load request JSON from a file path, '-' for stdin, or an inline JSON object/array string.", }; - private static Option RequestJson { get; } = new("--request-json") + private static Option RequestJson { get; } = new(@"--request-json") { Description = "Request body as JSON.", Hidden = true, }; - private static Option RequestFile { get; } = new("--request-file") + private static Option RequestFile { get; } = new(@"--request-file") { Description = "Path to a JSON request file, or '-' for stdin.", Hidden = true, @@ -65,7 +66,7 @@ public static Command Create() var specifiedCount = (hasInput ? 1 : 0) + (hasRequestJson ? 1 : 0) + (hasRequestFile ? 1 : 0); if (specifiedCount != 1) { - result.AddError("Specify exactly one of --input, --request-json, or --request-file."); + result.AddError(@"Specify exactly one of --input, --request-json, or --request-file."); } }); diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/StartGeneratingCreateSpeechToSpeechCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/StartGeneratingCreateSpeechToSpeechCommandApiCommand.g.cs index 2f7c2fb..b5d573a 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/StartGeneratingCreateSpeechToSpeechCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/StartGeneratingCreateSpeechToSpeechCommandApiCommand.g.cs @@ -1,4 +1,5 @@ #nullable enable +#pragma warning disable CS0618 using System.CommandLine; @@ -12,18 +13,18 @@ internal static partial class StartGeneratingCreateSpeechToSpeechCommandApiComma Description = @"The version of the RunwayML API being used. You can read more about versioning [here](/api-details/versioning).", DefaultValueFactory = _ => "2024-11-06", }; - private static Option Input { get; } = new("--input") + private static Option Input { get; } = new(@"--input") { Description = "Load request JSON from a file path, '-' for stdin, or an inline JSON object/array string.", }; - private static Option RequestJson { get; } = new("--request-json") + private static Option RequestJson { get; } = new(@"--request-json") { Description = "Request body as JSON.", Hidden = true, }; - private static Option RequestFile { get; } = new("--request-file") + private static Option RequestFile { get; } = new(@"--request-file") { Description = "Path to a JSON request file, or '-' for stdin.", Hidden = true, @@ -65,7 +66,7 @@ public static Command Create() var specifiedCount = (hasInput ? 1 : 0) + (hasRequestJson ? 1 : 0) + (hasRequestFile ? 1 : 0); if (specifiedCount != 1) { - result.AddError("Specify exactly one of --input, --request-json, or --request-file."); + result.AddError(@"Specify exactly one of --input, --request-json, or --request-file."); } }); diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/StartGeneratingCreateTextToImageCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/StartGeneratingCreateTextToImageCommandApiCommand.g.cs index 2da40da..6af8ea2 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/StartGeneratingCreateTextToImageCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/StartGeneratingCreateTextToImageCommandApiCommand.g.cs @@ -1,4 +1,5 @@ #nullable enable +#pragma warning disable CS0618 using System.CommandLine; @@ -12,18 +13,18 @@ internal static partial class StartGeneratingCreateTextToImageCommandApiCommand Description = @"The version of the RunwayML API being used. You can read more about versioning [here](/api-details/versioning).", DefaultValueFactory = _ => "2024-11-06", }; - private static Option Input { get; } = new("--input") + private static Option Input { get; } = new(@"--input") { Description = "Load request JSON from a file path, '-' for stdin, or an inline JSON object/array string.", }; - private static Option RequestJson { get; } = new("--request-json") + private static Option RequestJson { get; } = new(@"--request-json") { Description = "Request body as JSON.", Hidden = true, }; - private static Option RequestFile { get; } = new("--request-file") + private static Option RequestFile { get; } = new(@"--request-file") { Description = "Path to a JSON request file, or '-' for stdin.", Hidden = true, @@ -65,7 +66,7 @@ public static Command Create() var specifiedCount = (hasInput ? 1 : 0) + (hasRequestJson ? 1 : 0) + (hasRequestFile ? 1 : 0); if (specifiedCount != 1) { - result.AddError("Specify exactly one of --input, --request-json, or --request-file."); + result.AddError(@"Specify exactly one of --input, --request-json, or --request-file."); } }); diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/StartGeneratingCreateTextToSpeechCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/StartGeneratingCreateTextToSpeechCommandApiCommand.g.cs index be7cb5d..271b0a1 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/StartGeneratingCreateTextToSpeechCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/StartGeneratingCreateTextToSpeechCommandApiCommand.g.cs @@ -1,4 +1,5 @@ #nullable enable +#pragma warning disable CS0618 using System.CommandLine; @@ -12,18 +13,18 @@ internal static partial class StartGeneratingCreateTextToSpeechCommandApiCommand Description = @"The version of the RunwayML API being used. You can read more about versioning [here](/api-details/versioning).", DefaultValueFactory = _ => "2024-11-06", }; - private static Option Input { get; } = new("--input") + private static Option Input { get; } = new(@"--input") { Description = "Load request JSON from a file path, '-' for stdin, or an inline JSON object/array string.", }; - private static Option RequestJson { get; } = new("--request-json") + private static Option RequestJson { get; } = new(@"--request-json") { Description = "Request body as JSON.", Hidden = true, }; - private static Option RequestFile { get; } = new("--request-file") + private static Option RequestFile { get; } = new(@"--request-file") { Description = "Path to a JSON request file, or '-' for stdin.", Hidden = true, @@ -65,7 +66,7 @@ public static Command Create() var specifiedCount = (hasInput ? 1 : 0) + (hasRequestJson ? 1 : 0) + (hasRequestFile ? 1 : 0); if (specifiedCount != 1) { - result.AddError("Specify exactly one of --input, --request-json, or --request-file."); + result.AddError(@"Specify exactly one of --input, --request-json, or --request-file."); } }); diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/StartGeneratingCreateTextToVideoCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/StartGeneratingCreateTextToVideoCommandApiCommand.g.cs index c61e6b5..bdd0699 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/StartGeneratingCreateTextToVideoCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/StartGeneratingCreateTextToVideoCommandApiCommand.g.cs @@ -1,4 +1,5 @@ #nullable enable +#pragma warning disable CS0618 using System.CommandLine; @@ -12,18 +13,18 @@ internal static partial class StartGeneratingCreateTextToVideoCommandApiCommand Description = @"The version of the RunwayML API being used. You can read more about versioning [here](/api-details/versioning).", DefaultValueFactory = _ => "2024-11-06", }; - private static Option Input { get; } = new("--input") + private static Option Input { get; } = new(@"--input") { Description = "Load request JSON from a file path, '-' for stdin, or an inline JSON object/array string.", }; - private static Option RequestJson { get; } = new("--request-json") + private static Option RequestJson { get; } = new(@"--request-json") { Description = "Request body as JSON.", Hidden = true, }; - private static Option RequestFile { get; } = new("--request-file") + private static Option RequestFile { get; } = new(@"--request-file") { Description = "Path to a JSON request file, or '-' for stdin.", Hidden = true, @@ -65,7 +66,7 @@ public static Command Create() var specifiedCount = (hasInput ? 1 : 0) + (hasRequestJson ? 1 : 0) + (hasRequestFile ? 1 : 0); if (specifiedCount != 1) { - result.AddError("Specify exactly one of --input, --request-json, or --request-file."); + result.AddError(@"Specify exactly one of --input, --request-json, or --request-file."); } }); diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/StartGeneratingCreateVideoToVideoCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/StartGeneratingCreateVideoToVideoCommandApiCommand.g.cs index 3f49695..7965b7b 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/StartGeneratingCreateVideoToVideoCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/StartGeneratingCreateVideoToVideoCommandApiCommand.g.cs @@ -1,4 +1,5 @@ #nullable enable +#pragma warning disable CS0618 using System.CommandLine; @@ -12,18 +13,18 @@ internal static partial class StartGeneratingCreateVideoToVideoCommandApiCommand Description = @"The version of the RunwayML API being used. You can read more about versioning [here](/api-details/versioning).", DefaultValueFactory = _ => "2024-11-06", }; - private static Option Input { get; } = new("--input") + private static Option Input { get; } = new(@"--input") { Description = "Load request JSON from a file path, '-' for stdin, or an inline JSON object/array string.", }; - private static Option RequestJson { get; } = new("--request-json") + private static Option RequestJson { get; } = new(@"--request-json") { Description = "Request body as JSON.", Hidden = true, }; - private static Option RequestFile { get; } = new("--request-file") + private static Option RequestFile { get; } = new(@"--request-file") { Description = "Path to a JSON request file, or '-' for stdin.", Hidden = true, @@ -65,7 +66,7 @@ public static Command Create() var specifiedCount = (hasInput ? 1 : 0) + (hasRequestJson ? 1 : 0) + (hasRequestFile ? 1 : 0); if (specifiedCount != 1) { - result.AddError("Specify exactly one of --input, --request-json, or --request-file."); + result.AddError(@"Specify exactly one of --input, --request-json, or --request-file."); } }); diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/StartGeneratingCreateVoiceDubbingCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/StartGeneratingCreateVoiceDubbingCommandApiCommand.g.cs index 3dcf1d8..4c88a26 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/StartGeneratingCreateVoiceDubbingCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/StartGeneratingCreateVoiceDubbingCommandApiCommand.g.cs @@ -1,4 +1,5 @@ #nullable enable +#pragma warning disable CS0618 using System.CommandLine; @@ -12,18 +13,18 @@ internal static partial class StartGeneratingCreateVoiceDubbingCommandApiCommand Description = @"The version of the RunwayML API being used. You can read more about versioning [here](/api-details/versioning).", DefaultValueFactory = _ => "2024-11-06", }; - private static Option Input { get; } = new("--input") + private static Option Input { get; } = new(@"--input") { Description = "Load request JSON from a file path, '-' for stdin, or an inline JSON object/array string.", }; - private static Option RequestJson { get; } = new("--request-json") + private static Option RequestJson { get; } = new(@"--request-json") { Description = "Request body as JSON.", Hidden = true, }; - private static Option RequestFile { get; } = new("--request-file") + private static Option RequestFile { get; } = new(@"--request-file") { Description = "Path to a JSON request file, or '-' for stdin.", Hidden = true, @@ -65,7 +66,7 @@ public static Command Create() var specifiedCount = (hasInput ? 1 : 0) + (hasRequestJson ? 1 : 0) + (hasRequestFile ? 1 : 0); if (specifiedCount != 1) { - result.AddError("Specify exactly one of --input, --request-json, or --request-file."); + result.AddError(@"Specify exactly one of --input, --request-json, or --request-file."); } }); diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/StartGeneratingCreateVoiceIsolationCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/StartGeneratingCreateVoiceIsolationCommandApiCommand.g.cs index 744fd61..2c28b32 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/StartGeneratingCreateVoiceIsolationCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/StartGeneratingCreateVoiceIsolationCommandApiCommand.g.cs @@ -1,4 +1,5 @@ #nullable enable +#pragma warning disable CS0618 using System.CommandLine; @@ -12,18 +13,18 @@ internal static partial class StartGeneratingCreateVoiceIsolationCommandApiComma Description = @"The version of the RunwayML API being used. You can read more about versioning [here](/api-details/versioning).", DefaultValueFactory = _ => "2024-11-06", }; - private static Option Input { get; } = new("--input") + private static Option Input { get; } = new(@"--input") { Description = "Load request JSON from a file path, '-' for stdin, or an inline JSON object/array string.", }; - private static Option RequestJson { get; } = new("--request-json") + private static Option RequestJson { get; } = new(@"--request-json") { Description = "Request body as JSON.", Hidden = true, }; - private static Option RequestFile { get; } = new("--request-file") + private static Option RequestFile { get; } = new(@"--request-file") { Description = "Path to a JSON request file, or '-' for stdin.", Hidden = true, @@ -65,7 +66,7 @@ public static Command Create() var specifiedCount = (hasInput ? 1 : 0) + (hasRequestJson ? 1 : 0) + (hasRequestFile ? 1 : 0); if (specifiedCount != 1) { - result.AddError("Specify exactly one of --input, --request-json, or --request-file."); + result.AddError(@"Specify exactly one of --input, --request-json, or --request-file."); } }); diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/TaskManagementDeleteTasksByIdCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/TaskManagementDeleteTasksByIdCommandApiCommand.g.cs index ec8afcc..2879936 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/TaskManagementDeleteTasksByIdCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/TaskManagementDeleteTasksByIdCommandApiCommand.g.cs @@ -1,4 +1,5 @@ #nullable enable +#pragma warning disable CS0618 using System.CommandLine; diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/TaskManagementGetTasksByIdCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/TaskManagementGetTasksByIdCommandApiCommand.g.cs index 891f1dd..731b819 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/TaskManagementGetTasksByIdCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/TaskManagementGetTasksByIdCommandApiCommand.g.cs @@ -1,4 +1,5 @@ #nullable enable +#pragma warning disable CS0618 using System.CommandLine; diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/UploadsCreateUploadsCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/UploadsCreateUploadsCommandApiCommand.g.cs index 80a5063..2f7d721 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/UploadsCreateUploadsCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/UploadsCreateUploadsCommandApiCommand.g.cs @@ -1,4 +1,5 @@ #nullable enable +#pragma warning disable CS0618 using System.CommandLine; @@ -20,23 +21,23 @@ internal static partial class UploadsCreateUploadsCommandApiCommand Required = true, }; - private static Option Type { get; } = new( + private static Option Type { get; } = new( name: @"--type") { Description = @"The type of upload to create", }; - private static Option Input { get; } = new("--input") + private static Option Input { get; } = new(@"--input") { Description = "Load request JSON from a file path, '-' for stdin, or an inline JSON object/array string.", }; - private static Option RequestJson { get; } = new("--request-json") + private static Option RequestJson { get; } = new(@"--request-json") { Description = "Request body as JSON.", Hidden = true, }; - private static Option RequestFile { get; } = new("--request-file") + private static Option RequestFile { get; } = new(@"--request-file") { Description = "Path to a JSON request file, or '-' for stdin.", Hidden = true, @@ -80,7 +81,7 @@ public static Command Create() var specifiedCount = (hasInput ? 1 : 0) + (hasRequestJson ? 1 : 0) + (hasRequestFile ? 1 : 0); if (specifiedCount > 1) { - result.AddError("Specify at most one of --input, --request-json, or --request-file."); + result.AddError(@"Specify at most one of --input, --request-json, or --request-file."); } }); @@ -96,7 +97,7 @@ await CliRuntime.RunAsync(async () => cancellationToken).ConfigureAwait(false); var xRunwayVersion = parseResult.GetRequiredValue(XRunwayVersion); var filename = parseResult.GetRequiredValue(Filename); - var type = parseResult.GetValue(Type) ?? __requestBase?.Type ?? default; + var type = CliRuntime.WasSpecified(parseResult, Type) ? parseResult.GetValue(Type) : __requestBase is not null ? __requestBase.Type : default; using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); @@ -116,4 +117,4 @@ await CliRuntime.WriteResponseAsync( }, cancellationToken).ConfigureAwait(false)); return command; } -} +} \ No newline at end of file diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/VoicesCreateVoicesCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/VoicesCreateVoicesCommandApiCommand.g.cs index 5e7a325..a79440e 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/VoicesCreateVoicesCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/VoicesCreateVoicesCommandApiCommand.g.cs @@ -1,4 +1,5 @@ #nullable enable +#pragma warning disable CS0618 using System.CommandLine; @@ -31,18 +32,18 @@ internal static partial class VoicesCreateVoicesCommandApiCommand Description = @"", Required = true, }; - private static Option Input { get; } = new("--input") + private static Option Input { get; } = new(@"--input") { Description = "Load request JSON from a file path, '-' for stdin, or an inline JSON object/array string.", }; - private static Option RequestJson { get; } = new("--request-json") + private static Option RequestJson { get; } = new(@"--request-json") { Description = "Request body as JSON.", Hidden = true, }; - private static Option RequestFile { get; } = new("--request-file") + private static Option RequestFile { get; } = new(@"--request-file") { Description = "Path to a JSON request file, or '-' for stdin.", Hidden = true, @@ -87,7 +88,7 @@ public static Command Create() var specifiedCount = (hasInput ? 1 : 0) + (hasRequestJson ? 1 : 0) + (hasRequestFile ? 1 : 0); if (specifiedCount > 1) { - result.AddError("Specify at most one of --input, --request-json, or --request-file."); + result.AddError(@"Specify at most one of --input, --request-json, or --request-file."); } }); @@ -103,7 +104,7 @@ await CliRuntime.RunAsync(async () => cancellationToken).ConfigureAwait(false); var name = parseResult.GetRequiredValue(NameOption); var xRunwayVersion = parseResult.GetRequiredValue(XRunwayVersion); - var description = parseResult.GetValue(DescriptionOption) ?? __requestBase?.Description; + var description = CliRuntime.WasSpecified(parseResult, DescriptionOption) ? parseResult.GetValue(DescriptionOption) : __requestBase is not null ? __requestBase.Description : default; var from = parseResult.GetRequiredValue(From); using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/VoicesCreateVoicesPreviewCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/VoicesCreateVoicesPreviewCommandApiCommand.g.cs index 65e7a4f..d618aed 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/VoicesCreateVoicesPreviewCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/VoicesCreateVoicesPreviewCommandApiCommand.g.cs @@ -1,4 +1,5 @@ #nullable enable +#pragma warning disable CS0618 using System.CommandLine; diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/VoicesDeleteVoicesByIdCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/VoicesDeleteVoicesByIdCommandApiCommand.g.cs index 41f7b77..26a18a3 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/VoicesDeleteVoicesByIdCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/VoicesDeleteVoicesByIdCommandApiCommand.g.cs @@ -1,4 +1,5 @@ #nullable enable +#pragma warning disable CS0618 using System.CommandLine; diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/VoicesEditVoicesByIdCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/VoicesEditVoicesByIdCommandApiCommand.g.cs index 8ee7f54..dc87e2b 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/VoicesEditVoicesByIdCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/VoicesEditVoicesByIdCommandApiCommand.g.cs @@ -1,4 +1,5 @@ #nullable enable +#pragma warning disable CS0618 using System.CommandLine; @@ -30,18 +31,18 @@ internal static partial class VoicesEditVoicesByIdCommandApiCommand { Description = @"An optional description of the voice.", }; - private static Option Input { get; } = new("--input") + private static Option Input { get; } = new(@"--input") { Description = "Load request JSON from a file path, '-' for stdin, or an inline JSON object/array string.", }; - private static Option RequestJson { get; } = new("--request-json") + private static Option RequestJson { get; } = new(@"--request-json") { Description = "Request body as JSON.", Hidden = true, }; - private static Option RequestFile { get; } = new("--request-file") + private static Option RequestFile { get; } = new(@"--request-file") { Description = "Path to a JSON request file, or '-' for stdin.", Hidden = true, @@ -86,7 +87,7 @@ public static Command Create() var specifiedCount = (hasInput ? 1 : 0) + (hasRequestJson ? 1 : 0) + (hasRequestFile ? 1 : 0); if (specifiedCount > 1) { - result.AddError("Specify at most one of --input, --request-json, or --request-file."); + result.AddError(@"Specify at most one of --input, --request-json, or --request-file."); } }); @@ -102,8 +103,8 @@ await CliRuntime.RunAsync(async () => cancellationToken).ConfigureAwait(false); var id = parseResult.GetRequiredValue(Id); var xRunwayVersion = parseResult.GetRequiredValue(XRunwayVersion); - var name = parseResult.GetValue(NameOption) ?? __requestBase?.Name; - var description = parseResult.GetValue(DescriptionOption) ?? __requestBase?.Description; + var name = CliRuntime.WasSpecified(parseResult, NameOption) ? parseResult.GetValue(NameOption) : __requestBase is not null ? __requestBase.Name : default; + var description = CliRuntime.WasSpecified(parseResult, DescriptionOption) ? parseResult.GetValue(DescriptionOption) : __requestBase is not null ? __requestBase.Description : default; using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/VoicesGetVoicesByIdCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/VoicesGetVoicesByIdCommandApiCommand.g.cs index dedd7f2..4547c1b 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/VoicesGetVoicesByIdCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/VoicesGetVoicesByIdCommandApiCommand.g.cs @@ -1,4 +1,5 @@ #nullable enable +#pragma warning disable CS0618 using System.CommandLine; diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/VoicesGetVoicesCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/VoicesGetVoicesCommandApiCommand.g.cs index 30081de..4c7e53c 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/VoicesGetVoicesCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/VoicesGetVoicesCommandApiCommand.g.cs @@ -1,4 +1,5 @@ #nullable enable +#pragma warning disable CS0618 using System.CommandLine; diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/WorkflowsCreateWorkflowsByIdCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/WorkflowsCreateWorkflowsByIdCommandApiCommand.g.cs index 7a23d47..25087f0 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/WorkflowsCreateWorkflowsByIdCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/WorkflowsCreateWorkflowsByIdCommandApiCommand.g.cs @@ -1,4 +1,5 @@ #nullable enable +#pragma warning disable CS0618 using System.CommandLine; @@ -24,18 +25,18 @@ internal static partial class WorkflowsCreateWorkflowsByIdCommandApiCommand { Description = @"Optional node outputs to override default values. Keys are node IDs from the workflow graph, values are objects mapping output keys to typed values.", }; - private static Option Input { get; } = new("--input") + private static Option Input { get; } = new(@"--input") { Description = "Load request JSON from a file path, '-' for stdin, or an inline JSON object/array string.", }; - private static Option RequestJson { get; } = new("--request-json") + private static Option RequestJson { get; } = new(@"--request-json") { Description = "Request body as JSON.", Hidden = true, }; - private static Option RequestFile { get; } = new("--request-file") + private static Option RequestFile { get; } = new(@"--request-file") { Description = "Path to a JSON request file, or '-' for stdin.", Hidden = true, @@ -79,7 +80,7 @@ public static Command Create() var specifiedCount = (hasInput ? 1 : 0) + (hasRequestJson ? 1 : 0) + (hasRequestFile ? 1 : 0); if (specifiedCount > 1) { - result.AddError("Specify at most one of --input, --request-json, or --request-file."); + result.AddError(@"Specify at most one of --input, --request-json, or --request-file."); } }); @@ -95,7 +96,7 @@ await CliRuntime.RunAsync(async () => cancellationToken).ConfigureAwait(false); var id = parseResult.GetRequiredValue(Id); var xRunwayVersion = parseResult.GetRequiredValue(XRunwayVersion); - var nodeOutputs = parseResult.GetValue(NodeOutputs) ?? __requestBase?.NodeOutputs; + var nodeOutputs = CliRuntime.WasSpecified(parseResult, NodeOutputs) ? parseResult.GetValue(NodeOutputs) : __requestBase is not null ? __requestBase.NodeOutputs : default; using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/WorkflowsGetWorkflowInvocationsByIdCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/WorkflowsGetWorkflowInvocationsByIdCommandApiCommand.g.cs index dd5f72e..87dc2ba 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/WorkflowsGetWorkflowInvocationsByIdCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/WorkflowsGetWorkflowInvocationsByIdCommandApiCommand.g.cs @@ -1,4 +1,5 @@ #nullable enable +#pragma warning disable CS0618 using System.CommandLine; diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/WorkflowsGetWorkflowsByIdCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/WorkflowsGetWorkflowsByIdCommandApiCommand.g.cs index 2b8f722..c8c1f8a 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/WorkflowsGetWorkflowsByIdCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/WorkflowsGetWorkflowsByIdCommandApiCommand.g.cs @@ -1,4 +1,5 @@ #nullable enable +#pragma warning disable CS0618 using System.CommandLine; diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/WorkflowsGetWorkflowsCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/WorkflowsGetWorkflowsCommandApiCommand.g.cs index 5fc4a2f..6dc70dd 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/WorkflowsGetWorkflowsCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/WorkflowsGetWorkflowsCommandApiCommand.g.cs @@ -1,4 +1,5 @@ #nullable enable +#pragma warning disable CS0618 using System.CommandLine;