eclipsegc / common-console
一个通用的控制台基础应用。
1.0.0
2022-10-19 19:50 UTC
Requires
- php: >=8.1
- ext-json: *
- consolidation/config: ^1.0@dev || ^2
- symfony/config: >=4.4
- symfony/console: >=4.4
- symfony/dependency-injection: >=4.4
- symfony/event-dispatcher: >=4.4
- symfony/filesystem: >=4.4
- symfony/process: >=4.4
- symfony/yaml: >=4.4
Requires (Dev)
- drupal/coder: dev-8.x-3.x
- php-coveralls/php-coveralls: ^2.4
- phpspec/prophecy-phpunit: ^2.0@dev
- phpunit/phpunit: ^9.3@dev
This package is auto-updated.
Last update: 2024-09-16 14:47:57 UTC
README
Common Console 是基于 Symfony Console 组件的工具,提供了一套命令行接口,可用于在不同平台的不同网站中自动化脚本操作。平台是一个本地或远程环境,用于托管不同的网站。
Common Console 本身提供了一些现成的命令用于创建基本平台,但它可以扩展以创建更多平台和命令。其潜力在于工具的可扩展性。
安装
使用最新版本的 composer 安装此包
$composer require acquia/contenthub-console
$composer install
使用
安装后,您可以创建基本平台
./bin/commoncli
CommonConsole 0.0.1
Usage:
command [options] [arguments]
Options:
-h, --help Display this help message
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
-n, --no-interaction Do not ask any interactive question
--uri[=URI] The url from which to mock a request.
--bare Prevents output styling.
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
Available commands:
help Displays help for a command
list Lists commands
platform
platform:create [pc] Create a new platform on which to execute common console commands.
platform:delete [pdel] Deletes the specified platform.
platform:describe [pd] Obtain more details about a platform.
platform:list [pl] List available platforms.
platform:sites List available sites registered in the platform.
扩展 Common Console
有一些项目扩展了此工具,允许创建在那些平台上运行的平台和命令