cli: reject --jobs 0 in translate command #297
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/297"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from fxceless/victory-fork. Originally posted by Caasares on 2026-11-24T23:21:19Z.
Fixes #249
Summary
victory translate --jobsasOption<std::num::NonZeroUsize>inapps/victory/src/main.rsandapps/victory/src/translate.rs, so--jobs 0is rejected at CLI argument parsing before scanning any files andtranslate::runenforces a non-zero worker count at the API boundary.run_paths/print_summaryinapps/victory/src/translate.rsso translation execution can be verified directly against synthetic DXBC fixtures without game files.victory translate --jobs 0returning aclapValueValidationerror and--jobs 1parsing cleanly (apps/victory/src/main.rs).translate::run/run_pathswith--jobs 1processing a synthetic DXBC container (apps/victory/src/translate.rs).Verification
All checks run inside
wt-vf-249after the final edit (zero game files used; synthetic DXBC fixture built in test memory):cargo clippy --workspace --all-targets --locked -- -D warnings: passed (0 warnings)cargo clippy --workspace --all-targets --all-features --locked -- -D warnings: passed (0 warnings)cargo test --workspace --locked: passed across all workspace test suites (499 passed, 0 failed, 7 pre-existing ignored acrossvictory-formats,victory-gpu, andvictory-shader; includesvictory4 passed andxtaskasset-policy checks 4 passed)cargo fmt --all -- --check: reports pre-existing formatting differences in untouched code across the workspace; all lines added/modified in this PR conform torustfmt.toml.Note: AI-assisted fix; contains no game files or assets.
Imported from fxceless/victory-fork. Originally posted by kaayzouee on 2026-11-25T01:05:40Z.
Duplicate of #290?
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.