diff --git a/bin/console b/bin/console index 74ea7d6..0c5993b 100755 --- a/bin/console +++ b/bin/console @@ -1,9 +1,12 @@ -#!/usr/local/bin/php81 +#!/usr/bin/keyhelp-php81 runCommand(); +try { + $app = new BindAPI(config: $config, argumentsCount: count(value: $arguments), arguments: $arguments); + $app->runCommand(); +} catch (DependencyException|NotFoundException $e) { + echo $e->getMessage(); + exit(1); +} catch (Exception $e) { + echo $e->getMessage(); +} /**