diff --git a/src/cli/Beatoven.CLI/Beatoven.CLI.csproj b/src/cli/Beatoven.CLI/Beatoven.CLI.csproj
index b8fc647..afcce37 100644
--- a/src/cli/Beatoven.CLI/Beatoven.CLI.csproj
+++ b/src/cli/Beatoven.CLI/Beatoven.CLI.csproj
@@ -6,19 +6,12 @@
enable
preview
true
- true
Beatoven.CLI
beatoven
Beatoven.CLI
- v
- dev
-
- all
- runtime; build; native; contentfiles; analyzers; buildtransitive
-
-
+
\ No newline at end of file
diff --git a/src/cli/Beatoven.CLI/Commands/TasksGetTaskStatusCommandApiCommand.g.cs b/src/cli/Beatoven.CLI/Commands/TasksGetTaskStatusCommandApiCommand.g.cs
index 72db210..66fa331 100644
--- a/src/cli/Beatoven.CLI/Commands/TasksGetTaskStatusCommandApiCommand.g.cs
+++ b/src/cli/Beatoven.CLI/Commands/TasksGetTaskStatusCommandApiCommand.g.cs
@@ -1,5 +1,4 @@
#nullable enable
-#pragma warning disable CS0618
using System.CommandLine;
diff --git a/src/cli/Beatoven.CLI/Commands/TracksComposeTrackCommandApiCommand.g.cs b/src/cli/Beatoven.CLI/Commands/TracksComposeTrackCommandApiCommand.g.cs
index d84df2a..c74e426 100644
--- a/src/cli/Beatoven.CLI/Commands/TracksComposeTrackCommandApiCommand.g.cs
+++ b/src/cli/Beatoven.CLI/Commands/TracksComposeTrackCommandApiCommand.g.cs
@@ -1,5 +1,4 @@
#nullable enable
-#pragma warning disable CS0618
using System.CommandLine;
@@ -23,18 +22,18 @@ internal static partial class TracksComposeTrackCommandApiCommand
private static Option Looping { get; } = CliRuntime.CreateNullableBoolOption(
name: @"--looping",
description: @"Set `true` for a higher amount of looping. Default `false`.");
- 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,
@@ -81,7 +80,7 @@ Returns a task ID that can be polled via `GET /api/v1/tasks/{task_id}`
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,8 +95,8 @@ await CliRuntime.RunAsync(async () =>
global::Beatoven.SourceGenerationContext.Default,
cancellationToken).ConfigureAwait(false);
var prompt = parseResult.GetRequiredValue(Prompt);
- var format = CliRuntime.WasSpecified(parseResult, Format) ? parseResult.GetValue(Format) : __requestBase is not null ? __requestBase.Format : default;
- var looping = CliRuntime.WasSpecified(parseResult, Looping) ? parseResult.GetValue(Looping) : __requestBase is not null ? __requestBase.Looping : default;
+ var format = parseResult.GetValue(Format) ?? __requestBase?.Format;
+ var looping = parseResult.GetValue(Looping) ?? __requestBase?.Looping;
using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false);