Merge "[small change]Change the format of plugin information"

This commit is contained in:
Jenkins 2017-07-19 02:14:08 +00:00 committed by Gerrit Code Review
commit e442473a3e
1 changed files with 3 additions and 2 deletions

View File

@ -72,9 +72,10 @@ class PluginCommands(object):
if plugin_info["parameters"]:
print("PARAMETERS")
rows = [utils.Struct(name=p["name"],
description="%s\n" % p["doc"])
description=p["doc"])
for p in plugin_info["parameters"]]
cliutils.print_list(rows, fields=["name", "description"])
cliutils.print_list(rows, fields=["name", "description"],
sortby_index=None)
else:
print("Multiple plugins found:")
self._print_plugins_list(found)