Repository navigation
xargs: do not merge extra args before replacing - #363
Merged
Merged
Conversation
YDX-2147483647
marked this pull request as draft
April 28, 2024 13:22
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #363 +/- ##
==========================================
+ Coverage 60.03% 60.48% +0.44%
==========================================
Files 32 32
Lines 4021 4069 +48
Branches 891 895 +4
==========================================
+ Hits 2414 2461 +47
Misses 1254 1254
- Partials 353 354 +1 ☔ View full report in Codecov by Sentry. |
YDX-2147483647
force-pushed
the
xargs-replace
branch
7 times, most recently
from
April 28, 2024 16:34
458fab4 to
31a9c11
Compare
This comment was marked as resolved.
This comment was marked as resolved.
YDX-2147483647
marked this pull request as ready for review
April 29, 2024 01:46
This comment was marked as resolved.
This comment was marked as resolved.
Contributor
|
@YDX-2147483647 sorry, i missed your question :( |
Contributor
Author
|
Never mind and thanks for your answer. So those 100+ lines is worth changing. I'll update the branch and add more tests when I have time. |
YDX-2147483647
force-pushed
the
xargs-replace
branch
from
May 23, 2024 18:13
32986a8 to
4b3e4b9
Compare
Contributor
Author
|
Well, I've updated the branch. Could someone approve the CI? I think this PR is ready now. |
Contributor
|
it it ready for review? :) |
Contributor
Author
|
Yes! It is ready. |
Contributor
|
nice: |
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.
Resolves #362
-I/-i/--replaceis given, now we process extra args (read from stdin) one by one, and replace all matches in initial args (given in argv) with the same extra arg in each time. (i.e. Cartesian product)-L(--max-lines),-n(--max-args) and-I/-iare mutually exclusive. Now we warn if more than one are given.