1 Star 0 Fork 0

php-sword/framework

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Help.php 804 Bytes
一键复制 编辑 原始数据 按行查看 历史
Kyour 提交于 2021-01-12 10:32 +08:00 . push one
<?php
namespace Sword\Command;
use EasySwoole\Command\AbstractInterface\CommandInterface;
use EasySwoole\Command\CommandManager;
class Help implements CommandInterface
{
public function commandName(): string
{
return 'help';
}
public function desc(): string
{
return 'Display this help message';
}
public function exec(): string
{
// $manager = CommandManager::getInstance();
return '帮助消息';
}
public function help(\EasySwoole\Command\AbstractInterface\CommandHelpInterface $commandHelp): \EasySwoole\Command\AbstractInterface\CommandHelpInterface
{
// $commandHelp->addAction('test','测试方法');
// $commandHelp->addActionOpt('-no','不输出详细信息');
return $commandHelp;
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/php-sword/framework.git
git@gitee.com:php-sword/framework.git
php-sword
framework
framework
master

搜索帮助