18 $this->setName(
'plugins:list')
19 ->setDescription(
elgg_echo(
'cli:plugins:list:description'))
20 ->addOption(
'status',
's', InputOption::VALUE_OPTIONAL,
21 elgg_echo(
'cli:plugins:list:option:status', [
'all | active | inactive']),
24 ->addOption(
'refresh',
'r', InputOption::VALUE_NONE,
25 elgg_echo(
'cli:plugins:list:option:refresh')
34 $status = $this->
option(
'status');
35 if (!in_array($status, [
'all',
'active',
'inactive'])) {
36 $this->
error(
elgg_echo(
'cli:plugins:list:error:status', [$status,
'all | active | inactive']));
40 if ($this->
option(
'refresh') !==
false) {
44 $table =
new Table($this->output);
50 elgg_echo(
'admin:plugins:label:priority'),
60 $plugin->getVersion(),
62 $plugin->getPriority(),
elgg_get_plugins(string $status= 'active')
Returns an ordered list of plugins.
elgg-cli plugins:list [–status]
error($message)
Print an error.
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Abstract command with some utility methods.
_elgg_services()
Get the global service provider.
option($name)
Returns option value.