From bfe875d37c88ad18868b0d08d2d10f8c30e68a06 Mon Sep 17 00:00:00 2001 From: Marshall Hallenbeck Date: Wed, 20 Sep 2023 11:36:44 -0400 Subject: [PATCH] doc(connection.py): add docstring for call_modules --- nxc/connection.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/nxc/connection.py b/nxc/connection.py index 99bce461..b8bb859a 100755 --- a/nxc/connection.py +++ b/nxc/connection.py @@ -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(