Main entry point for the documentation generation process.
()
| 44 | |
| 45 | |
| 46 | async def main() -> None: |
| 47 | """Main entry point for the documentation generation process.""" |
| 48 | try: |
| 49 | # Parse arguments and create configuration |
| 50 | args = parse_arguments() |
| 51 | config = Config.from_args(args) |
| 52 | |
| 53 | # Create and run documentation generator |
| 54 | doc_generator = DocumentationGenerator(config) |
| 55 | await doc_generator.run() |
| 56 | |
| 57 | except KeyboardInterrupt: |
| 58 | logger.debug("Documentation generation interrupted by user") |
| 59 | except Exception as e: |
| 60 | logger.error(f"Unexpected error: {str(e)}") |
| 61 | logger.error(f"Traceback: {traceback.format_exc()}") |
| 62 | raise |
| 63 | |
| 64 | |
| 65 | if __name__ == "__main__": |
no test coverage detected