Skip to content

[Nitro CLI] Fix client download command / Forward exit code#9280

Merged
tobias-tengler merged 3 commits intomainfrom
tte/fix-no-exit-code-being-returned-from-cli
Mar 1, 2026
Merged

[Nitro CLI] Fix client download command / Forward exit code#9280
tobias-tengler merged 3 commits intomainfrom
tte/fix-no-exit-code-being-returned-from-cli

Conversation

@tobias-tengler
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings March 1, 2026 13:49
@tobias-tengler tobias-tengler changed the title [Nitro CLI] Fix client download command [Nitro CLI] Fix client download command / Forward exit code Mar 1, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates Nitro CLI runtime behavior to better align with JSON payload naming and to correctly propagate command exit codes from the System.CommandLine pipeline.

Changes:

  • Configure NitroCLIJsonContext source generation to use camelCase JSON property naming.
  • Update Program.Main to return the InvokeAsync exit code (Task<int>) rather than discarding it.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/Nitro/CommandLine/src/CommandLine/Services/Configuration/NitroCLIJsonContext.cs Sets camelCase naming policy for source-generated JSON serialization/deserialization used by CLI config + client download parsing.
src/Nitro/CommandLine/src/CommandLine/Program.cs Returns the System.CommandLine invocation exit code to the host process.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants