action-wordpress-plugin-deploy icon indicating copy to clipboard operation
action-wordpress-plugin-deploy copied to clipboard

Suggestion: --quiet instead of > /dev/null

Open nextgenthemes opened this issue 5 years ago • 1 comments

  • I think the commands will output serious errors with --quiet and not just suppress everything. SVN says it displays nothing or just a summary so it's probably a good fit here. I prefer it in general for all commands that have it from what I learned.
  • Redirecting to /dev/null means the output is still written and then discarded, that's less efficient than not writing it (and not allocate, prepare that output to be written)

Source for 2nd point and more info on this

nextgenthemes avatar May 13 '20 20:05 nextgenthemes

This seems fine to me - I'd love to know what SVN could potentially show for the add and rm commands just for due diligence, it's possible it would actually show more useful info if it's a reasonable summary.

helen avatar May 14 '20 02:05 helen

@nextgenthemes are you able to help resolve the merge conflicts that Faisal noted above?

jeffpaul avatar Jan 09 '23 17:01 jeffpaul

Not really, I am not really up for spending any time on this. It was just a TINY suggestion that does not really mater that much. I am running my own action based on this written on php if anyone is interested. https://github.com/nextgenthemes/advanced-responsive-video-embedder/blob/master/actions/wp-plugin-deploy/wp-plugin-deploy.php

It works locally and on Github with the same script. It also supports what I called "workingdir" that enabled it to operate out of a different folder that was mission in this.

Feel free to edit this --quiet in yourself for this.

nextgenthemes avatar Jan 09 '23 17:01 nextgenthemes

@nextgenthemes thanks for the quick response, understood and I appreciate the contribution either way!

@10up/open-source-practice if anyone is interested in picking this up, then please go for it, otherwise if this sits without updates I'll likely close at some point 🙏🏼

jeffpaul avatar Jan 09 '23 22:01 jeffpaul