Elendev / composer-push

Provide a `push` command to composer to push to repositories
Apache License 2.0
48 stars 30 forks source link

Add Progress Bar to upload output #66

Closed tm1000 closed 2 years ago

tm1000 commented 2 years ago

This utilizes the getProgressBar method of Composer\IO\ConsoleIO to display a progress bar during upload of packages

Execute the push for the URL <url>...
 100/100 [============================] 100%
Archive correctly pushed to the Nexus server
Elendev commented 2 years ago

Hello @tm1000, thanks for your PR! I'm just wondering, and unfortunately I don't have the time right now to dive into the code, but is there a way to avoid duplicating the code of the function? For example by providing the progress callback function as a member of the AbstractProvider and making the $progress variable a member of the provider?

tm1000 commented 2 years ago

@Elendev yes I can do that!

Elendev commented 2 years ago

Version 1.0.3 released with your contribution, thanks!