doc: clarify --watch and --watch-path usage with --run#58136
Conversation
|
Hi! Thanks for taking care of this. The PR may need some extra edits. The implies of watch in watch-path is not being shown, and also, just keep in mind that the --run flag has priority; It can not be mixed with watch and its derivatives. Could you please reflect that into your PR? Refs: |
|
Hi @juanarbol!, thanks for the observation |
juanarbol
left a comment
There was a problem hiding this comment.
Just some more minor clarifications, I'm sorry I just forgot a couple details, but after this; I'm more than happy with this PR. Thanks again!
|
Test failure is already reported. Refs: #58127 |
a0fca22 to
b740f44
Compare
|
Updated the first commit message accordingly by amending it |
Thanks. You don't have to do it now, but if you intend to land a single commit, squash everything into a single commit. |
90561a2 to
c5881e6
Compare
Thanks! I've squashed the commits and the PR should be ready now. Let me know if there's anything else needed from my side. |
I'm sorry, CI still not happy due to commit guidelines. Fix it, will approve and wait for more reviews :-) Humble ping to @nodejs/documentation Refs: |
c5881e6 to
e8bef23
Compare
|
Yeah, missed that part π. |
Co-authored-by: Tierney Cyren <accounts@bnb.im>
|
@juanibe https://github.com/nodejs/node/actions/runs/14916227242/job/42382918668?pr=58136#step:7:21 Please, please, always run linters/tests before exposing it for review. Once CI is happy, this will be landed. |
b34c59e to
6cd8d11
Compare
Thanks @juanarbol for the reminder I've just run |
This comment was marked as outdated.
This comment was marked as outdated.
Commit Queue failed- Loading data for nodejs/node/pull/58136 β Done loading data for nodejs/node/pull/58136 ----------------------------------- PR info ------------------------------------ Title doc: clarify --watch and --watch-path usage with --run (#58136) β Could not retrieve the email or name of the PR author's from user's GitHub profile! Branch juanibe:docs/watch-cli-usage -> nodejs:main Labels doc, cli, author ready Commits 3 - doc: clarify behavior of --watch-path and --watch flags - Update doc/api/cli.md - doc: clarify context of --run incompatibility Committers 2 - Juan Ignacio Benito <benitojuanignacio@gmail.com> - GitHub <noreply@github.com> PR-URL: https://github.com/nodejs/node/pull/58136 Reviewed-By: Juan JosΓ© Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Tierney Cyren <hello@bnb.im> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ulises GascΓ³n <ulisesgascongonzalez@gmail.com> ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/58136 Reviewed-By: Juan JosΓ© Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Tierney Cyren <hello@bnb.im> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ulises GascΓ³n <ulisesgascongonzalez@gmail.com> -------------------------------------------------------------------------------- βΉ This PR was created on Sat, 03 May 2025 10:10:31 GMT β Approvals: 4 β - Juan JosΓ© Arboleda (@juanarbol): https://github.com/nodejs/node/pull/58136#pullrequestreview-2851757702 β - Tierney Cyren (@bnb): https://github.com/nodejs/node/pull/58136#pullrequestreview-2833848422 β - James M Snell (@jasnell) (TSC): https://github.com/nodejs/node/pull/58136#pullrequestreview-2834775904 β - Ulises GascΓ³n (@UlisesGascon): https://github.com/nodejs/node/pull/58136#pullrequestreview-2835351578 β Last GitHub CI successful βΉ Green GitHub CI is sufficient -------------------------------------------------------------------------------- β No git cherry-pick in progress β No git am in progress β No git rebase in progress -------------------------------------------------------------------------------- - Bringing origin/main up to date... From https://github.com/nodejs/node * branch main -> FETCH_HEAD β origin/main is now up-to-date - Downloading patch for 58136 From https://github.com/nodejs/node * branch refs/pull/58136/merge -> FETCH_HEAD β Fetched commits as b395420a99ff..6cd8d116fc9b -------------------------------------------------------------------------------- Auto-merging doc/api/cli.md [main 1fe793a132] doc: clarify behavior of --watch-path and --watch flags Author: Juan Ignacio Benito <benitojuanignacio@gmail.com> Date: Sat May 3 11:07:24 2025 +0100 1 file changed, 7 insertions(+) Auto-merging doc/api/cli.md [main 35555b9788] Update doc/api/cli.md Author: juanibe <39571376+juanibe@users.noreply.github.com> Date: Thu May 8 17:13:01 2025 +0100 1 file changed, 1 insertion(+), 1 deletion(-) Auto-merging doc/api/cli.md [main 0eee13a752] doc: clarify context of --run incompatibility Author: Juan Ignacio Benito <benitojuanignacio@gmail.com> Date: Thu May 8 22:10:55 2025 +0100 1 file changed, 3 insertions(+), 3 deletions(-) β Patches applied There are 3 commits in the PR. Attempting autorebase. Rebasing (2/6) Executing: git node land --amend --yes --------------------------------- New Message ---------------------------------- doc: clarify behavior of --watch-path and --watch flagshttps://github.com/nodejs/node/actions/runs/15121317393 |
|
Landed in 0d3e1b3 π Congrats on the contribution! Thanks! |
This PR adds a note under the
--watchand--watch-pathCLI options incli.mdto clarify that these flags require a file path and cannot be used with--run.Fixes confusion where users might assume
--watch-pathor--watchwork with--run, which currently results in a runtime error.Helps address issue discussion here