amend icon indicating copy to clipboard operation
amend copied to clipboard

using symfony progress helper with amend?

Open isimmons opened this issue 11 years ago • 2 comments

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

isimmons avatar Feb 18 '14 22:02 isimmons

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.

ghost avatar Feb 18 '14 22:02 ghost

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.

isimmons avatar Feb 18 '14 23:02 isimmons