Skip to content

Commit c25b8cf

Browse files
committed
Add SubscribeCommand and Update version
1 parent 168cc3e commit c25b8cf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bin/mqtt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ foreach (
2323
}
2424

2525
use Simps\MQTTCLI\Command\PublishCommand;
26+
use Simps\MQTTCLI\Command\SubscribeCommand;
2627
use Symfony\Component\Console\Application;
2728
use function Swoole\Coroutine\run;
2829

@@ -37,8 +38,9 @@ LOGO;
3738
\Swoole\Runtime::enableCoroutine(SWOOLE_HOOK_ALL);
3839
run(function () use ($logo) {
3940
try {
40-
$application = new Application("{$logo}\n\nPHPMQTT CLI Tools", 'v1.0.0');
41+
$application = new Application("{$logo}\n\nPHPMQTT CLI Tools", 'v0.1.1');
4142
$application->add(new PublishCommand());
43+
$application->add(new SubscribeCommand());
4244
$application->run();
4345
} catch (\Swoole\ExitException $e) {
4446
// Ignore swoole exit exception

0 commit comments

Comments
 (0)