From: Tim Düsterhus Date: Sun, 10 Nov 2013 14:34:22 +0000 (+0100) Subject: Add "commands" cli command X-Git-Tag: 2.0.0_RC_2~34 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fccbdeaf03556192d3fd9f6e0962663fd1c9fad6;p=GitHub%2FWoltLab%2FWCF.git Add "commands" cli command See #1561 --- diff --git a/wcfsetup/install/files/lib/system/cli/command/CommandsCLICommand.class.php b/wcfsetup/install/files/lib/system/cli/command/CommandsCLICommand.class.php new file mode 100644 index 0000000000..88579d6f75 --- /dev/null +++ b/wcfsetup/install/files/lib/system/cli/command/CommandsCLICommand.class.php @@ -0,0 +1,30 @@ + + * @package com.woltlab.wcf + * @subpackage system.cli.command + * @category Community Framework + */ +class CommandsCLICommand implements ICLICommand { + /** + * @see \wcf\system\cli\command\ICLICommand::execute() + */ + public function execute(array $parameters) { + CLIWCF::getReader()->println(CLIUtil::generateList(array_keys(CLICommandHandler::getCommands()))); + } + + /** + * @see \wcf\system\cli\command\ICLICommand::canAccess() + */ + public function canAccess() { + return true; + } +}