eclipsegc/common-console

一个通用的控制台基础应用。

安装数: 749,763

依赖者: 1

建议者: 0

安全: 0

星标: 1

关注者: 5

分支: 5

开放问题: 2

类型:项目

1.0.0 2022-10-19 19:50 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

有一些项目扩展了此工具,允许创建在那些平台上运行的平台和命令