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.
Contributor
There was a problem hiding this comment.
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 |
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
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.
The old
prek init-template-diris hide but still works.