INNER CODE UNIT · Python
main
rohitcoder/hawk-eye · hawk_scanner/main.py:219
def main():
start_time = time.time()
args = system.parse_args()
system.print_banner(args)
results = []
if args.command:
connections = system.get_connection(args)
data_sources = connections.get('sources', {}).keys()
commands = [args.command] if args.command != 'all' else data_sources
for command in commands:
results.extend(execute_command(command, args))
else:
system.print_error(args, "Please provide a command to execute")
sys.exit(1)
grouped_results = group_results(args, results)