From fccbdeaf03556192d3fd9f6e0962663fd1c9fad6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Sun, 10 Nov 2013 15:34:22 +0100 Subject: [PATCH] Add "commands" cli command See #1561 --- .../cli/command/CommandsCLICommand.class.php | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 wcfsetup/install/files/lib/system/cli/command/CommandsCLICommand.class.php 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; + } +} -- 2.20.1