Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(990)

Unified Diff: plaso/analysis/manager.py

Issue 326740043: [plaso] Refactored options to CLI helpers #160 (Closed)
Patch Set: Changes after review and merge Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | plaso/cli/analysis_tool.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: plaso/analysis/manager.py
diff --git a/plaso/analysis/manager.py b/plaso/analysis/manager.py
index 9d3687789e20ef47efee882af090384e4b831b79..2d2389ad6dc84e6df68f3ece93847106adfb2a6f 100644
--- a/plaso/analysis/manager.py
+++ b/plaso/analysis/manager.py
@@ -69,6 +69,15 @@ class AnalysisPluginManager(object):
return sorted(results)
@classmethod
+ def GetPluginNames(cls):
+ """Retrieves the analysis plugin names.
+
+ Returns:
+ list[str]: analysis plugin names.
+ """
+ return sorted(cls._plugin_classes.keys())
+
+ @classmethod
def GetPluginObjects(cls, plugin_names):
"""Retrieves the plugin objects.
@@ -76,7 +85,7 @@ class AnalysisPluginManager(object):
plugin_names (list[str]): names of plugins that should be retrieved.
Returns:
- dict[str,AnalysisPlugin]: analysis plugins per name.
+ dict[str, AnalysisPlugin]: analysis plugins per name.
"""
plugin_objects = {}
for plugin_name, plugin_class in iter(cls._plugin_classes.items()):
« no previous file with comments | « no previous file | plaso/cli/analysis_tool.py » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b