feat!: say the next step on every line, and refuse -n with --all - #9
Merged
Conversation
Everything a result needs said in words — a list the registry has nothing to put in, a window that dropped every version, a list cut by the limit — now prints on stderr ahead of the table. stdout carries the table alone, so a caller can read the rows with awk, and a package with nothing to list no longer answers with a bare header. -n and --all asked for two different lengths and the last one typed won, while the same pair next to @Version was already refused. Both orders now exit 2. An unknown flag, a transport failure, and a status that is neither the document nor a 404 carry a remediation like the rest of the lines: a rate limit says how long to wait on every registry, a 5xx says to retry, and any other status says the registry is refusing the request. RateLimited moved to internal/fetch so pypi and npm reach the same wording. The instruction paragraph no longer reads as if @Version combines with the options that narrow a list, and says that stderr explains an empty or cut table on exit 0. A test keeps the README copy of the paragraph verbatim. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Signed-off-by: Takashi Iwamoto <hello@iwamot.com>
Dependency Review✅ No vulnerabilities found.Scanned FilesNone |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #9 +/- ##
==========================================
+ Coverage 69.65% 70.58% +0.93%
==========================================
Files 11 11
Lines 491 510 +19
==========================================
+ Hits 342 360 +18
- Misses 149 150 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
Everything a result needs said in words — a list the registry has nothing to put in, a window that dropped every version, a list cut by the limit — now prints on stderr ahead of the table. stdout carries the table alone, so a caller can read the rows with awk, and a package with nothing to list no longer answers with a bare header. With
--jsonthe cut count stays a field in the document and is not repeated on stderr.-nand--allasked for two different lengths and the last one typed won, while the same pair next to@VERSIONwas already refused. Both orders now exit 2.An unknown flag, a transport failure, and a status that is neither the document nor a 404 carry a remediation like the rest of the lines: a rate limit says how long to wait on every registry, a 5xx says the registry is failing and to retry later, and any other status says the registry is refusing this request.
RateLimitedmoved tointernal/fetchso PyPI and npm reach the same wording.The instruction paragraph no longer reads as if
@VERSIONcombines with the options that narrow a list, and says that stderr explains an empty or cut table on exit 0. A test keeps the README copy of the paragraph verbatim.🤖 Generated with Claude Code