Skip to content

Commit a947093

Browse files
authored
命令行工具支持功能描述信息 (#129)
1 parent f795258 commit a947093

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Tool/QueueTool.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class QueueTool
1717
/**
1818
* 获取队列状态
1919
*
20-
* @CommandAction("status")
20+
* @CommandAction(name="status", description="获取队列状态")
2121
* @Argument(name="queue", type="string", required=true)
2222
*
2323
* @return void
@@ -30,7 +30,7 @@ public function status(string $queue)
3030
/**
3131
* 将失败消息恢复到队列.
3232
*
33-
* @CommandAction("restoreFail")
33+
* @CommandAction(name="restoreFail", description="将失败消息恢复到队列")
3434
* @Argument(name="queue", type="string", required=true)
3535
*
3636
* @return void
@@ -43,7 +43,7 @@ public function restoreFail(string $queue)
4343
/**
4444
* 将超时消息恢复到队列.
4545
*
46-
* @CommandAction("restoreTimeout")
46+
* @CommandAction(name="restoreTimeout", description="将超时消息恢复到队列")
4747
* @Argument(name="queue", type="string", required=true)
4848
*
4949
* @return void

0 commit comments

Comments
 (0)