Commit 5ff0163b authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

ENH: fsl_add_module --list lists version/terms of use

parent db257a64
......@@ -63,7 +63,7 @@ def runAsAdmin(routine : str, *argv : str):
def lookup(func : str) -> Callable:
"""Looks up and returns a reference to a function which is named ``func``,
which is defined in the :mod:`fsl.add_module` module.
which is defined in the :mod:`fsl.add_module.routines` module.
import fsl.add_module.routines as routines
......@@ -67,11 +67,20 @@ def listPlugins(manifest : Manifest, verbose : bool = False):
plugins = manifest.getCategory(category)
for plugin in plugins:
info(f'{}', EMPHASIS, indent=2)
if plugin.version is not None:
info(f'Version {plugin.version}', indent=4)
if plugin.description is not None:
info(plugin.description, indent=4, wrap=True)
if plugin.termsOfUse is not None:
info('Installation of this plugin is subject to terms of use:',
info(plugin.termsOfUse, indent=6, wrap=True)
if verbose:
for item in ('url', 'destination', 'checksum'):
value = getattr(plugin, item)
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