You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
run and download now support selecting a server patchline and pinning a server version. These settings can also be configured, with command-line selections taking precedence.
Running with a pinned version downloads it when needed and skips staged updates. A requested version must already be installed or match the latest version available for the selected patchline.
Downloading server files clears staged updates. A version supplied on the command line is saved to the per-server configuration when possible.
Documentation
Added usage examples and guidance for patchlines, version pinning, and staged updates.
Included review availability: This review used your included allowance. 2 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour.
📝 Walkthrough
The CLI and configuration now support patchline and server-version selection. Run and download commands pass the selected values to the downloader. Pinned runs skip staged updates, and successful downloads remove the updater staging directory.
Changes: Server-version selection
Layer / File(s)
Summary
Selection options and configuration src/cli/mod.rs, src/config/app_config.rs
CLI arguments and AppConfig add optional patchline and server-version settings. Configuration merging prefers overlay values. A new method updates an existing per-server version pin, with tests for replacement and no-op cases.
Patchline-aware version downloads src/server/downloader.rs, src/server/updater.rs
ServerDownloader accepts an optional patchline and required version. It checks the requested version, applies the patchline to downloader commands, and removes updater staging after a successful download.
Run and download command behavior src/cli/run.rs, src/cli/download.rs, README.md
Run and download commands resolve selections from CLI arguments and configuration, then pass them to the downloader. They attempt to save CLI-supplied server versions and warn if saving fails. Pinned runs skip staged updates. README examples describe the options and behavior.
sequenceDiagram
participant RunCommand
participant FileSetup as ensure_server_files
participant Downloader as ServerDownloader
participant UpdateLoop as run_server_loop
RunCommand->>FileSetup: selected patchline and server version
FileSetup->>Downloader: download_all with required version
Downloader-->>FileSetup: server files ready or version mismatch
FileSetup-->>RunCommand: server-file setup result
RunCommand->>UpdateLoop: requested server version
UpdateLoop->>UpdateLoop: skip staged update when version is pinned
Loading
Merge Risk:⚪ Minimal · up to 7de6d
The reviewed parser behavior is unchanged, with no identified user-facing impact.
Pre-merge checks: 5
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title clearly identifies the main changes: adding server-version and patchline support.
Docstring Coverage
Docstring coverage is 85.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 20 functions across 7 files.
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary by CodeRabbit
runanddownloadnow support selecting a server patchline and pinning a server version. These settings can also be configured, with command-line selections taking precedence.