-
-
Notifications
You must be signed in to change notification settings - Fork 150
Move identify and init-template-dir under the prek util top-level command
#1574
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
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1574 +/- ##
==========================================
+ Coverage 91.57% 91.59% +0.01%
==========================================
Files 92 92
Lines 18122 18135 +13
==========================================
+ Hits 16596 16610 +14
+ Misses 1526 1525 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…el command The old `prek init-template-dir` is hide but still works.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR reorganizes utility commands by introducing a new prek util top-level namespace. The identify and init-template-dir commands are moved from the top level to become subcommands under prek util.
Changes:
- Introduced
prek utilnamespace to group utility commands - Moved
identifytoprek util identify(breaking change - no backwards compatibility) - Moved
init-template-dirtoprek util init-template-dir(with hidden backwards-compatible alias at top level) - Also moved the hidden
generate-shell-completioncommand to the util namespace
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| docs/configuration.md | Updated documentation reference from prek identify to prek util identify |
| docs/cli.md | Auto-generated CLI reference updated to reflect new command structure with prek util namespace |
| crates/prek/tests/install.rs | Added test for prek util init-template-dir while maintaining backwards compatibility tests |
| crates/prek/tests/identify.rs | Updated tests to use prek util identify command path |
| crates/prek/src/main.rs | Refactored command routing to handle new Util namespace and its subcommands |
| crates/prek/src/cli/mod.rs | Defined new UtilNamespace and UtilCommand enum, moved commands under util namespace |
📦 Cargo Bloat ComparisonBinary size change: +0.00% (23.6 MiB → 23.6 MiB) Expand for cargo-bloat outputHead Branch ResultsBase Branch Results |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.
The old
prek init-template-diris hide but still works.