Commit dce4fb18 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

RF: Plugin descriptions are printed when specific plugins/modules requested on

command line
parent 8b0bbc42
......@@ -52,9 +52,9 @@ def downloadPluginManifest(url : Union[str, pathlib.Path]) -> Manifest:
return manifest
def _printPlugin(plugin : Plugin,
index : int = None,
verbose : bool = False):
def printPlugin(plugin : Plugin,
index : int = None,
verbose : bool = False):
"""Prints an overview of ``plugin``. Used by :func:`listPlugins` and
:func:`selectPlugins`.
......@@ -104,7 +104,7 @@ def listPlugins(manifest : Manifest, verbose : bool = False):
plugins = manifest.getCategory(category)
for plugin in plugins:
_printPlugin(plugin, verbose=verbose)
printPlugin(plugin, verbose=verbose)
def createArchiveDir(archiveDir : Union[str, pathlib.Path]):
......@@ -211,7 +211,7 @@ def selectPlugins(manifest : Manifest, category : str = None) -> List[Plugin]:
info(f' (Only showing modules in the [{category}] category)')
for i, plugin in enumerate(plugins, 1):
_printPlugin(plugin, i)
printPlugin(plugin, i)
info('')
if len(plugins) > 1:
......
......@@ -273,6 +273,11 @@ def selectPlugins(args : argparse.Namespace,
plugins = ui.selectPlugins(manifest, args.category)
else:
plugins = [manifest[p] for p in plugins]
info('Installing the following modules:', EMPHASIS)
info('')
for p in plugins:
ui.printPlugin(p)
info('')
# warn the user if any plugins have a default
# destination that is based on an unset
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment