1717use CyberPanel \Commands \Commands \StorageCommand ;
1818use CyberPanel \Macros \Commands \LoadMacrosCommand ;
1919use CyberPanel \Macros \Commands \RunMacroCommand ;
20+ use Symfony \Component \Console \Event \ConsoleCommandEvent ;
21+ use CyberPanel \Macros \Commands \MacrosEnabledListCommand ;
2022
2123class CommandResolver {
2224
@@ -28,8 +30,6 @@ private function __construct() {
2830 $ this ->registerCommand ('datetime ' , DateTimeCommand::class);
2931 $ this ->registerCommand ('systeminfo ' , SystemInfoCommand::class);
3032 $ this ->registerCommand ('hwinfo ' , HwInfoCommand::class);
31- $ this ->registerCommand ('loadmacros ' , LoadMacrosCommand::class);
32- $ this ->registerCommand ('macro ' , RunMacroCommand::class);
3333 $ this ->registerCommand ('keyboard ' , KeyboardCommand::class);
3434 $ this ->registerCommand ('media ' , MediaCommand::class);
3535 $ this ->registerCommand ('lockscreenimage ' , LockScreenImageCommand::class);
@@ -39,6 +39,9 @@ private function __construct() {
3939 $ this ->registerCommand ('files ' , FileManagerCommand::class);
4040 $ this ->registerCommand ('upsstatus ' , UpsStateCommand::class);
4141 $ this ->registerCommand ('storage ' , StorageCommand::class);
42+ $ this ->registerCommand ('loadmacros ' , LoadMacrosCommand::class);
43+ $ this ->registerCommand ('macro ' , RunMacroCommand::class);
44+ $ this ->registerCommand ('macros.enabled ' , MacrosEnabledListCommand::class);
4245 }
4346
4447 public static function getInstance () : self {
0 commit comments