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', ]; /**