def ListAnalysisPlugins(self):
    """Lists the analysis modules."""
    analysis_plugin_info = (
        analysis_manager.AnalysisPluginManager.GetAllPluginInformation())

    column_width = 10
    for name, _, _ in analysis_plugin_info:
      if len(name) > column_width:
        column_width = len(name)

    table_view = views.ViewsFactory.GetTableView(
        self._views_format_type, column_names=['Name', 'Description'],
        title='Analysis Plugins')
    # TODO: add support for a 3 column table.
    for name, description, type_string in analysis_plugin_info:
      description = '{0:s} [{1:s}]'.format(description, type_string)
      table_view.AddRow([name, description])
    table_view.Write(self._output_writer)
def ListAnalysisPlugins ( self ) : analysis_plugin_info = ( analysis_manager . AnalysisPluginManager . GetAllPluginInformation ( ) ) column_width = 10 for name , _ , _ in analysis_plugin_info : if len ( name ) > column_width : column_width = len ( name ) table_view = views . ViewsFactory . GetTableView ( self . _views_format_type , column_names = [ 'Name' , 'Description' ] , title = 'Analysis Plugins' ) for name , description , type_string in analysis_plugin_info : description = '{0:s} [{1:s}]' . format ( description , type_string ) table_view . AddRow ( [ name , description ] ) table_view . Write ( self . _output_writer )
Lists the analysis modules.