droath/robo-command-builder
Composer 安装命令:
composer require droath/robo-command-builder
包简介
Build Robo task commands from a single definition file.
README 文档
README
The robo command builder is a utility that allows commands to be defined in a definition file. Once the commands have been defined they'll be able to be called via a PHP method.
The command definition allows for the following directives:
- binary - string (required)
- commands - array (required)
Each command action will be able to define their arguments and/or options. The arguments definition is a single key array.
command.yml
... commands: upload : arguments: - file
Which you would be able to use within a Robo task class.
<?php $pathToConfig = __DIR__ . '/command.yml'; $task $this->task( CommandBuilder::class, 'upload', $pathToConfig, null ); $task->file(/path/to/file)->run();
The options definition can be either a single key array, which defaults to a boolean type. If you need to define more options then you'll need to use an array of objects. The following parameters exist in the option object:
- name - The option name (required)
- type - The option type (optional - defaults to boolean)
- default - The option default value (optional)
Option Types:
- array
- string
- integer
- boolean
binary: ddev commands: import-db: options: - { "name": "progress" } - { "name": "extract-path" } - { "name": "src", "type": "string" }
droath/robo-command-builder 适用场景与选型建议
droath/robo-command-builder 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 8.97k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2019 年 09 月 29 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 droath/robo-command-builder 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 droath/robo-command-builder 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 8.97k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-09-29