doc(connection.py): add docstring for call_modules

main
Marshall Hallenbeck 2023-09-20 11:36:44 -04:00
parent 1ef24853a4
commit bfe875d37c
1 changed files with 10 additions and 0 deletions

View File

@ -187,6 +187,16 @@ class connection(object):
getattr(self, attr)()
def call_modules(self):
"""
This function calls the modules and performs various actions based on the module's attributes.
It iterates over the modules specified in the command line arguments.
For each module, it loads the module and creates a context object, then calls functions based on the module's attributes.
Args:
None
Returns:
None
"""
for module in self.module:
self.logger.debug(f"Loading module {module.name} - {module}")
module_logger = NXCAdapter(