amend
amend copied to clipboard
using symfony progress helper with amend?
Hi, sorry this is not an actual issue but I'm trying to figure out if and how it is possible to use symfony's progressHelper with this.
Right now I have this and it works good but the progress bar would be a nice touch.
$updateCommand = new KevinGH\Amend\Command('self-update');
$updateCommand->setManifestUri('https://github.com/isimmons/sgd/raw/master/sgd-manifest.json');
$app->getHelperSet()->set(new KevinGH\Amend\Helper);
$app->add($updateCommand);
Is this something that could be easily integrated into KevinGH/Amend/Command ?
Thanks
It is possible, but Amend doesn't directly support it. You'll have to create a bunch of classes that will extend existing ones just so that you can customize Update::getFile()
to use the progress helper.
This is something I want to support in a future version, though.
Ok thanks. I won't spend a bunch of time on it for the app I'm working on now but it's good to know.