From bbe93f393acbdd46a8663bdd9fbf874dfb953ede Mon Sep 17 00:00:00 2001 From: loks0n <22452787+loks0n@users.noreply.github.com> Date: Mon, 20 Oct 2025 23:41:26 +0100 Subject: [PATCH] chore: remove cli --- composer.json | 2 +- composer.lock | 84 +++++-------------------- src/Orchestration/Adapter/DockerCLI.php | 2 +- 3 files changed, 19 insertions(+), 69 deletions(-) diff --git a/composer.json b/composer.json index 72da4ae..4f6d81f 100755 --- a/composer.json +++ b/composer.json @@ -19,7 +19,7 @@ }, "require": { "php": ">=8.0", - "utopia-php/cli": "0.18.*" + "utopia-php/console": "0.0.*" }, "require-dev": { "phpunit/phpunit": "^9.3", diff --git a/composer.lock b/composer.lock index 045eb00..b8c7907 100644 --- a/composer.lock +++ b/composer.lock @@ -4,105 +4,55 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "c32b1c75c9a83d187012555411ff1358", + "content-hash": "d4caa5a83ab682866adc836405017a7b", "packages": [ { - "name": "utopia-php/cli", - "version": "0.18.0", + "name": "utopia-php/console", + "version": "0.0.1", "source": { "type": "git", - "url": "https://github.com/utopia-php/cli.git", - "reference": "48610e02976180ac7eddf1c110cd675c6d2912d5" + "url": "https://github.com/utopia-php/console.git", + "reference": "f77104e4a888fa9cb3e08f32955ec09479ab7a92" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/cli/zipball/48610e02976180ac7eddf1c110cd675c6d2912d5", - "reference": "48610e02976180ac7eddf1c110cd675c6d2912d5", + "url": "https://api.github.com/repos/utopia-php/console/zipball/f77104e4a888fa9cb3e08f32955ec09479ab7a92", + "reference": "f77104e4a888fa9cb3e08f32955ec09479ab7a92", "shasum": "" }, "require": { - "php": ">=7.4", - "utopia-php/framework": "0.34.*" + "php": ">=7.4" }, "require-dev": { "laravel/pint": "1.2.*", "phpstan/phpstan": "^1.10", "phpunit/phpunit": "^9.3", - "squizlabs/php_codesniffer": "^3.6" + "squizlabs/php_codesniffer": "^3.6", + "swoole/ide-helper": "4.8.8" }, "type": "library", "autoload": { "psr-4": { - "Utopia\\CLI\\": "src/CLI" + "Utopia\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], - "description": "A simple CLI library to manage command line applications", + "description": "Console helpers for logging, prompting, and executing commands", "keywords": [ "cli", - "command line", - "framework", + "console", "php", - "upf", + "terminal", "utopia" ], "support": { - "issues": "https://github.com/utopia-php/cli/issues", - "source": "https://github.com/utopia-php/cli/tree/0.18.0" - }, - "time": "2024-05-08T05:05:53+00:00" - }, - { - "name": "utopia-php/framework", - "version": "0.34.10", - "source": { - "type": "git", - "url": "https://github.com/utopia-php/http.git", - "reference": "334b99d47b08f016a160b67dcbee0390cc2b8544" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/utopia-php/http/zipball/334b99d47b08f016a160b67dcbee0390cc2b8544", - "reference": "334b99d47b08f016a160b67dcbee0390cc2b8544", - "shasum": "" - }, - "require": { - "ext-swoole": "*", - "php": ">=8.0" - }, - "require-dev": { - "laravel/pint": "1.*", - "phpbench/phpbench": "^1.2", - "phpstan/phpstan": "1.*", - "phpunit/phpunit": "^9.5.25", - "swoole/ide-helper": "4.8.3" - }, - "type": "library", - "autoload": { - "psr-4": { - "Utopia\\": "src/", - "Tests\\E2E\\": "tests/e2e" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "A simple, light and advanced PHP HTTP framework", - "keywords": [ - "framework", - "http", - "php", - "upf" - ], - "support": { - "issues": "https://github.com/utopia-php/http/issues", - "source": "https://github.com/utopia-php/http/tree/0.34.10" + "issues": "https://github.com/utopia-php/console/issues", + "source": "https://github.com/utopia-php/console/tree/0.0.1" }, - "time": "2025-09-03T17:59:15+00:00" + "time": "2025-10-20T14:41:36+00:00" } ], "packages-dev": [ diff --git a/src/Orchestration/Adapter/DockerCLI.php b/src/Orchestration/Adapter/DockerCLI.php index 30663d2..c755eb5 100644 --- a/src/Orchestration/Adapter/DockerCLI.php +++ b/src/Orchestration/Adapter/DockerCLI.php @@ -2,7 +2,7 @@ namespace Utopia\Orchestration\Adapter; -use Utopia\CLI\Console; +use Utopia\Console; use Utopia\Orchestration\Adapter; use Utopia\Orchestration\Container; use Utopia\Orchestration\Container\Stats;