diff options
Diffstat (limited to 'os-plugins/slxos-plugin')
-rwxr-xr-x | os-plugins/slxos-plugin | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/os-plugins/slxos-plugin b/os-plugins/slxos-plugin index 2b87e814..7d85bf68 100755 --- a/os-plugins/slxos-plugin +++ b/os-plugins/slxos-plugin @@ -109,7 +109,13 @@ if ($action =~ m[^list-at]i) { my $fill = ' ' x 12; chomp(my $descr = $pluginInfo->{$_}->{description} || ''); $descr =~ s{\n}{\n$fill}igms; - "\n\t$_\n\t $descr\n"; + my $pluginStr = "$_"; + my $required = $pluginInfo->{$_}->{required} || []; + if (@$required) { + $pluginStr + .= _tr(' (requires: %s)', join(',', @$required)); + } + "\n\t$pluginStr\n\t $descr\n"; } else { "\t$_\n"; |