Skip to content

Commit c0fa240

Browse files
committed
feat(cli): add command to listen and show socket events
1 parent 4210541 commit c0fa240

File tree

6 files changed

+184
-62
lines changed

6 files changed

+184
-62
lines changed

bin/docker-api

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
declare(strict_types=1);
44

55
use Symfony\Component\Console\Application;
6+
use WebProject\DockerApiClient\Command\EventsListenCommand;
67
use WebProject\DockerApiClient\Command\ListContainersCommand;
78

89
if (!is_dir(dirname(__DIR__) . '/vendor')) {
@@ -18,6 +19,7 @@ require_once dirname(__DIR__) . '/vendor/autoload_runtime.php';
1819
return static function (array $context) {
1920
$application = new Application('Docker API', '@package_version@');
2021
$application->add(new ListContainersCommand());
22+
$application->add(new EventsListenCommand());
2123
$application->setDefaultCommand('docker:list-containers');
2224

2325
return $application;

0 commit comments

Comments
 (0)