mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-17 18:51:10 +01:00
Add version information to plugin tree output
This commit is contained in:
@@ -156,7 +156,8 @@ public final class PluginTree
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void append(StringBuilder buffer, String indent, PluginNode node) {
|
private void append(StringBuilder buffer, String indent, PluginNode node) {
|
||||||
buffer.append(indent).append("+- ").append(node.getId()).append("\n");
|
PluginInformation information = node.getPlugin().getPlugin().getInformation();
|
||||||
|
buffer.append(indent).append("+- ").append(node.getId()).append("@").append(information.getVersion()).append("\n");
|
||||||
for (PluginNode child : node.getChildren()) {
|
for (PluginNode child : node.getChildren()) {
|
||||||
append(buffer, indent + " ", child);
|
append(buffer, indent + " ", child);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user