-
Notifications
You must be signed in to change notification settings - Fork 14
feat(cli): Add vcspull search command with rg-style field-scoped queries
#494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #494 +/- ##
==========================================
+ Coverage 79.24% 80.42% +1.18%
==========================================
Files 15 16 +1
Lines 1980 2192 +212
Branches 404 454 +50
==========================================
+ Hits 1569 1763 +194
- Misses 267 278 +11
- Partials 144 151 +7 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
vcspull search command with rg-style field-scoped queries
9f41aaf to
214a2f2
Compare
Member
Author
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. 🤖 Generated with Claude Code |
tony
added a commit
that referenced
this pull request
Jan 3, 2026
why: Users need to know about the new search feature in the changelog. what: - Add New features section for v1.49.x - Document vcspull search command with usage examples - Include key features and advanced examples
why: Provide fast repository discovery with field-scoped, regex-based queries. what: - add search subcommand with query parsing, highlighting, and JSON/NDJSON output - integrate parser/help coloring for new search flags
why: Validate search behavior across matching modes and outputs. what: - add search command fixtures and JSON/NDJSON assertions - update CLI logger expectation for new subcommand
why: Keep CLI documentation aligned with the new search subcommand. what: - add search command docs and API reference stubs - update CLI indexes and README examples
why: New search module needed unit tests for helper functions and edge cases. what: - Add unit tests for normalize_fields, parse_query_terms, compile_search_patterns - Add highlight_text tests with color modes enabled/disabled - Add search_repos tests for url/workspace field matches, error handling - Test auto-discover config path and invalid input handling - Use user_path fixture (via libvcs set_home autouse) instead of manual HOME setup
why: Users need to know about the new search feature in the changelog. what: - Add New features section for v1.49.x - Document vcspull search command with usage examples - Include key features and advanced examples
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Add a new
vcspull searchsubcommand for quickly finding repositories across your configuration using ripgrep-inspired query syntax.Key features:
name:django,url:github,path:code,workspace:~/projects-i/--ignore-case- Force case-insensitive-S/--smart-case- Case-insensitive unless pattern has uppercase (like rg)-F/--fixed-strings- Literal string matching--word-regexp- Match whole words only--any- OR matching (any term matches)-v/--invert-match- Show non-matching repos--json- Single JSON array for scripting--ndjson- Streaming newline-delimited JSONExamples
Changes
src/vcspull/cli/search.py- New search implementation with query parsing, pattern compilation, and output formattingsrc/vcspull/cli/__init__.py- CLI integration and help examplessrc/vcspull/cli/_formatter.py- New flags for help formattingtests/cli/test_search.py- Comprehensive test coveragedocs/cli/search.md- Full command documentationdocs/api/cli/search.md- API referenceREADME.md- Usage examplesTest plan
uv run ruff format .uv run ruff check . --fix --show-fixesuv run mypyuv run py.test