Skip to content

doc(GUIDE): update examples for the latest release (15.1.0) - #3460

Open
Cycle1337 wants to merge 1 commit into
BurntSushi:masterfrom
Cycle1337:fix/guide-update-to-latest-release-3448
Open

doc(GUIDE): update examples for the latest release (15.1.0)#3460
Cycle1337 wants to merge 1 commit into
BurntSushi:masterfrom
Cycle1337:fix/guide-update-to-latest-release-3448

Conversation

@Cycle1337

Copy link
Copy Markdown

Closes #3448

As noted in #3448, GUIDE.md pinned ripgrep 0.7.1 (which used clap) while its examples searched for lexopt (the parser switched to in later releases), so following the guide produced no matches. This updates the guide to the latest release (15.1.0) per the direction in #3448 (comment) ("the examples should just be updated for the latest release").

Changes (all in GUIDE.md):

  • Pin the source archive to 15.1.0 and refresh the ls block to the current top-level layout (crates/, fuzz/, FAQ.md, etc.).
  • Regenerate every README.md search example against the 15.1.0 README using rg 15.1.0, so displayed line numbers/content match actual output: rg fast, rg 'fast\w+', rg 'fast\w*', rg fast --replace/-r FAST, rg '^.*fast.*$' -r FAST, rg fast --only-matching --replace FAST, rg 'fast\s+(\w+)' -r 'fast-$1', rg 'fast\s+(?P<word>\w+)' -r 'fast-$word'.
  • Rework the rg 'fn write\(' walkthrough: 0.7.1's top-level src/ and in-tree termcolor/ no longer exist, so the example/prose now reference the crates/ workspace and limit the scoped search to crates/printer.

The lexopt examples were already correct for current source and are left unchanged. All command outputs were produced by running ripgrep 15.1.0 on the 15.1.0 source tree (GUIDE.md's own self-matches in the fn write\( example are omitted, matching the existing convention).

GUIDE.md pinned ripgrep 0.7.1 (which used clap) but its examples searched for lexopt (the current arg parser), so following the guide yielded no matches. Per BurntSushi#3448, update the guide to the latest release:

- Bump the pinned source archive from 0.7.1 to 15.1.0 and refresh the ls output to the current top-level layout (crates/, fuzz/, etc.).
- Regenerate every README.md search example (fast, fast\w+, fast\w*, --replace, --only-matching, capturing/named groups) against the 15.1.0 README using rg 15.1.0, so shown line numbers and content match actual output.
- Rework the 'fn write\(' walkthrough: the source no longer has a top-level src/ or in-tree termcolor/, so the example and prose now use the crates/ workspace layout (limiting the scoped search to crates/printer).

Refs BurntSushi#3448
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.

GUIDE.md searches for lexopt in ripgrep 0.7.1 but 0.7.1 uses clap

1 participant