codenamephp/deployer.command
Composer 安装命令:
composer require codenamephp/deployer.command
包简介
Extension to the deployer.base package that adds a system to define and run stable command line commands
README 文档
README
What is it?
This package provides basic functionality for command line tasks and service handling.
Installation
Easiest way is via composer. Just run composer require codenamephp/deployer.command in your cli which should install the latest version for you.
Usage
Commands
This package provides a \de\codenamephp\deployer\command\runner\iRunner that abstracts running of commands. The default implementation
\de\codenamephp\deployer\command\runner\WithDeployerFunctions - as the name suggests - uses the Deployer\run() method to run commands.
The \de\codenamephp\deployer\command\iCommand interface is designed to just get a command string along with a
\de\codenamephp\deployer\command\runConfiguration\iRunConfiguration that holds the options like timeouts etc. to run the command with. The
default \de\codenamephp\deployer\command\Command provides a simple API to build a command. Recommended usage is to create a Factory to build a command with
the binary, arguments etc. This factory can then be used in tasks to build the command and the runner to run it.
Service
There is a \de\codenamephp\deployer\command\service\iService interface that is intended to manage service with
\de\codenamephp\deployer\command\service\Service and \de\codenamephp\deployer\command\service\Systemctl to manage debian services.
统计信息
- 总下载量: 10.05k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 4
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2022-01-19