Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FSL
add_module
Commits
5ff0163b
Commit
5ff0163b
authored
May 25, 2021
by
Paul McCarthy
🚵
Browse files
ENH: fsl_add_module --list lists version/terms of use
parent
db257a64
Changes
2
Hide whitespace changes
Inline
Side-by-side
fsl/add_module/admin.py
View file @
5ff0163b
...
...
@@ -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
...
...
fsl/add_module/ui.py
View file @
5ff0163b
...
...
@@ -67,11 +67,20 @@ def listPlugins(manifest : Manifest, verbose : bool = False):
plugins
=
manifest
.
getCategory
(
category
)
for
plugin
in
plugins
:
info
(
f
'
{
plugin
.
name
:
25
s
}
'
,
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:'
,
indent
=
4
)
info
(
plugin
.
termsOfUse
,
indent
=
6
,
wrap
=
True
)
if
verbose
:
for
item
in
(
'url'
,
'destination'
,
'checksum'
):
value
=
getattr
(
plugin
,
item
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment