From b327387efa89f6ad9741d4b631f72189e4a3e323 Mon Sep 17 00:00:00 2001 From: JeroenG Date: Tue, 17 Nov 2015 17:22:28 +0100 Subject: [PATCH] Added command to list locally installed packages --- src/PackagerListCommand.php | 45 +++++++++++++++++++++++++++++++++ src/PackagerServiceProvider.php | 1 + 2 files changed, 46 insertions(+) create mode 100644 src/PackagerListCommand.php diff --git a/src/PackagerListCommand.php b/src/PackagerListCommand.php new file mode 100644 index 0000000..2427f57 --- /dev/null +++ b/src/PackagerListCommand.php @@ -0,0 +1,45 @@ + $path) { + $packages[] = [rtrim($package, '\\'), $path]; + } + $headers = ['Package', 'Path']; + + $this->table($headers, $packages); + } +} \ No newline at end of file diff --git a/src/PackagerServiceProvider.php b/src/PackagerServiceProvider.php index 15a6c67..f1b0d9b 100644 --- a/src/PackagerServiceProvider.php +++ b/src/PackagerServiceProvider.php @@ -33,6 +33,7 @@ class PackagerServiceProvider extends ServiceProvider 'JeroenG\Packager\PackagerRemoveCommand', 'JeroenG\Packager\PackagerGetCommand', 'JeroenG\Packager\PackagerGitCommand', + 'JeroenG\Packager\PackagerListCommand', ]; /**