Repository navigation
builtins: add rg command - #775
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f42dc76091
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b48aa2eb93
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5789202340
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Summary
rgcommand with ripgrep-style defaults, shared grep matching helpers, and recursive ignore/glob traversalmake test, and update contributor/docs/spec references for the new commandWhy
gbashpreviously shippedgrep,egrep, andfgrep, but it did not provide a recursive ripgrep-style builtin or parity coverage against a pinned ripgrep oracle. This change adds a focusedrgv1 surface and validates the supported behavior against the same pinned ripgrep version used in tests.Impact
Users can now use
rgdirectly insidegbashwith recursive search defaults, ignore-file support, glob filters, explicit unsupported-flag diagnostics, and test-backed parity for the supported flag set.Validation
go test ./internal/testutil -run '^TestResolveNixRipgrep$' -count=1GBASH_CONFORMANCE_RIPGREP=$(./scripts/ensure-ripgrep.sh) GBASH_CONFORMANCE_DIFF=$(./scripts/ensure-diffutils.sh) go test ./internal/builtins -count=1go test ./internal/runtime -run 'TestFuzzMetadataSeedCoverage|FuzzGeneratedPrograms' -count=1make testmake lint