()
| 30 | return args |
| 31 | |
| 32 | async def main(): |
| 33 | # Parse command line arguments |
| 34 | args = parse_args() |
| 35 | |
| 36 | # Initialize configuration and logger |
| 37 | config.initialize(config_path = args.config, args = args) |
| 38 | logger.initialize(config = config) |
| 39 | logger.info(f"| Config: {config.pretty_text}") |
| 40 | |
| 41 | processor = PROCESSOR.build(config.processor) |
| 42 | |
| 43 | try: |
| 44 | await processor.run() |
| 45 | except KeyboardInterrupt: |
| 46 | sys.exit() |
| 47 | |
| 48 | |
| 49 | if __name__ == '__main__': |
no test coverage detected