Closed mehmoodak closed 1 month ago
✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.
Package | Version | Score | Details |
---|
Would it be possible for your PR to only fix the --output bug and for my PR to make the updates to the --help menu?
@yolih I have made some changes, please take a look again.
Thanks, @mehmoodak ! 🙌
A couple more questions:
--output
option behave differently when passed with the vip import sql
and the vip search-replace
commands? If the behavior of --output
is the same for both commands then I think the description for the option should also be the same where it appears in the --help
menu.vip import sql
command? I believe that is the correct default for --output
with that command as well. @yolih The key difference is that vip import sql
requires a SQL file to be uploaded to S3, and printing to stdout
will result in an error. In contrast, vip search-replace
can use stdout without any issues.
Oooohhhh... interesting. Thank you for your patience with all of my questions!
Based on your explanation, I agree with removing Defaults to STDOUT
from the vip import sql
version of --output
.
For the vip search-replace
version of --output
, I suggest that the description in the help menu reads something like:
Create a local copy of the file with the completed search and replace operations. Ignored if the command includes --in-place. Accepts a local file path. Defaults to STDOUT.
What do you think?
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
What do you think?
@yolih help text updated. Thanks for helping me improve it.
Description
Fixed an issue with the
output
option of thevip import sql
command, which wasn't creating an output file as expected. Alongside this fix, this PR also improves the help text for thevip search-replace
command.Pull request checklist
New release checklist
Steps to Test
vip @example-app.develop export sql --output=output.sql.gz
node ./dist/bin/vip-import-sql.js @example-app.develop output.sql --search-replace="from,to" --output="test-output.sql"
test-output.sql
file is created with the updated content.