Implement client session management and refactoring

This commit is contained in:
netkas 2024-12-09 19:01:56 -05:00
parent cad2ea3419
commit 3a10e01bd8
11 changed files with 234 additions and 23 deletions

View file

@ -8,6 +8,7 @@ use Socialbox\Classes\CliCommands\InitializeCommand;
enum CliCommands : string
{
case INITIALIZE = 'init';
case CLIENT = 'client';
/**
* Handles the command execution, returns the exit code.
@ -20,6 +21,7 @@ enum CliCommands : string
return match ($this)
{
self::INITIALIZE => InitializeCommand::execute($args),
self::CLIENT => ClientCommand::execute($args)
};
}
public function getHelpMessage(): string

View file

@ -0,0 +1,8 @@
<?php
namespace Socialbox\Enums;
enum ClientCommands : string
{
case CONNECT = 'CONNECT';
}