feat(cli): use --node for dora logs node selection#1883
Conversation
|
😎 Merged manually by @heyong4725 - details. |
|
This is a breaking change, right? Can we perhaps add a hidden positional argument that gives a better error message? E.g. something like 'use the There are also some docs that still use the old syntax after this PR, e.g. |
8f941e6 to
17bb016
Compare
|
Addressed this in
Validation:
|
|
Did a pre-landing review pass. The PR is solid: the hidden-legacy-positional + targeted-hint approach from phil-opp's review was the right call, the parser tests cover the main shapes, and the doc updates are thorough (README, README.zh-CN, all 5 docs/*.md, plus the daemon-side error message in Three minor UX nits worth flagging. None of these are merge blockers, just polish opportunities for either this PR or a follow-up. 1. Misleading hint when both legacy positional and
|
|
Addressed the conflict-handling nits in b15efe2.\n\nChanges:\n- Added clap conflicts for the hidden legacy positional node argument against both |
|
Solid PR — clean design, comprehensive parser tests, and a thoughtful migration path with helpful runtime hints. Scope matches issue #1880 exactly. 0 critical, 5 informational[INFO] Coordination with PR #1884This PR's Recommended sequence: land this PR first, then #1884 rebases. After rebase, #1884's 5 redundant syntax-change lines disappear and its diff shrinks to just the new error table (which is what #1878 actually requested from #1884). I'll post a follow-up on #1884 noting this. [INFO] (confidence: 7/10)
|
Fixes #1880
Summary
dora logsnode selection explicit with--node/-ndora logs DATAFLOW NODEshape in parser testsValidation
cargo test -p dora-cli command::tests::passed: 74 passed, 0 failed, 78 filtered outcargo fmt --all -- --checkpassedgit diff origin/main..HEAD --checkpassedgitleaks detect --source . --log-opts=origin/main..HEAD --redact --no-bannerpassed: no leaks foundcargo clippy -p dora-cli --all-targets -- -A clippy::unnecessary-sort-by -D warningspassedNote: strict clippy without the allow currently hits the existing Rust 1.95
clippy::unnecessary_sort_bywarning inbinaries/coordinator/src/lib.rs:3698, outside this change.