From 2eec82fb997c0f8de140b49533a449d236ace4fc Mon Sep 17 00:00:00 2001 From: Djamil Legato Date: Fri, 23 Sep 2016 15:07:26 -0700 Subject: [PATCH] Fixed missing progress method in DirectInstall Command --- system/src/Grav/Console/Gpm/DirectInstallCommand.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/system/src/Grav/Console/Gpm/DirectInstallCommand.php b/system/src/Grav/Console/Gpm/DirectInstallCommand.php index 68cbec98a..54b98d552 100644 --- a/system/src/Grav/Console/Gpm/DirectInstallCommand.php +++ b/system/src/Grav/Console/Gpm/DirectInstallCommand.php @@ -361,4 +361,14 @@ class DirectInstallCommand extends ConsoleCommand return null; } + + /** + * @param $progress + */ + public function progress($progress) + { + $this->output->write("\x0D"); + $this->output->write(" |- Downloading package... " . str_pad($progress['percent'], 5, " ", + STR_PAD_LEFT) . '%'); + } }