Parse and load the builtin plugins and the ones in the configuration file. If this method is called using 'mesos config plugins', it displays the plugins that can be used.
(self, argv)
| 57 | } |
| 58 | |
| 59 | def plugins(self, argv): |
| 60 | """ |
| 61 | Parse and load the builtin plugins and the ones in the configuration |
| 62 | file. If this method is called using 'mesos config plugins', it |
| 63 | displays the plugins that can be used. |
| 64 | """ |
| 65 | # pylint: disable=unused-argument |
| 66 | plugins_table = Table(["NAME", "DESCRIPTION"]) |
| 67 | |
| 68 | # Load the plugins |
| 69 | plugins = cli.util.import_modules( |
| 70 | cli.util.join_plugin_paths(self.settings, self.config), |
| 71 | "plugins") |
| 72 | |
| 73 | for plugin in plugins: |
| 74 | plugins_table.add_row([ |
| 75 | cli.util.get_module(plugins, plugin).PLUGIN_NAME, |
| 76 | cli.util.get_module(plugins, plugin).SHORT_HELP |
| 77 | ]) |
| 78 | sys.stdout.write("{}\n".format(plugins_table)) |
| 79 | |
| 80 | def show(self, argv): |
| 81 | """ |