MCPcopy Index your code
hub / github.com/USArmyResearchLab/Dshell / print_plugins

Function print_plugins

dshell/decode.py:147–163  ·  view source on GitHub ↗

Print list of plugins with additional info.

(plugins)

Source from the content-addressed store, hash-verified

145
146
147def print_plugins(plugins):
148 """
149 Print list of plugins with additional info.
150 """
151 headers = ['module', 'name', 'title', 'type', 'author', 'description']
152 rows = []
153 for name, module in sorted(plugins.items()):
154 rows.append([
155 module.__module__,
156 name,
157 module.name,
158 module.__class__.__bases__[0].__name__,
159 module.author,
160 module.description,
161 ])
162
163 print(tabulate(rows, headers=headers))
164
165
166def main(plugin_args=None, **kwargs):

Callers 1

main_command_lineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected