INNER CODE UNIT · Python
load_command_module
rohitcoder/hawk-eye · hawk_scanner/main.py:27
def load_command_module(command):
try:
module = importlib.import_module(f"hawk_scanner.commands.{command}")
return module
except Exception as e:
print(f"Command '{command}' is not supported. {e}")
sys.exit(1)
def execute_command(command, args):
module = load_command_module(command)
return module.execute(args)
def group_results(args, results):
grouped_results = defaultdict(list)
for result in results:
connection = system.get_connection(args)