mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-08-28 18:59:44 +02:00
Initial imlementation of a mapping from volatility config trees to Argparse arguments.
This commit is contained in:
@@ -5,9 +5,10 @@ Created on 6 May 2013
|
||||
"""
|
||||
from abc import abstractmethod, ABCMeta
|
||||
|
||||
from volatility.framework import validity, config
|
||||
from volatility.framework import validity
|
||||
from volatility.framework.interfaces import context as interfaces_context
|
||||
|
||||
|
||||
#
|
||||
# Plugins
|
||||
# - Take in relevant number of TranslationLayers (of specified type)
|
||||
@@ -48,7 +49,6 @@ class PluginInterface(validity.ValidityRoutines, metaclass = ABCMeta):
|
||||
def validate_inputs(self):
|
||||
for option in self.requirements():
|
||||
if not option.optional:
|
||||
print("Validate", option.name)
|
||||
option.validate_input(self.config.get_value(option.name), self.context)
|
||||
|
||||
@abstractmethod
|
||||
@@ -61,7 +61,6 @@ class PluginInterface(validity.ValidityRoutines, metaclass = ABCMeta):
|
||||
:rtype: TreeGrid
|
||||
"""
|
||||
|
||||
|
||||
# TODO: Needs to say what it can/can't handle (validate context)
|
||||
# TODO: Needs to offer available options'
|
||||
# TODO: Figure out how to handle global config options
|
||||
|
||||
Reference in New Issue
Block a user