refactor: Split code into many files
This commit is contained in:
31
main.py
Executable file
31
main.py
Executable file
@@ -0,0 +1,31 @@
|
||||
#!/usr/bin/env python3
|
||||
"""
|
||||
Main entry point for the CrossFit Booker application.
|
||||
This script initializes the CrossFitBooker and starts the booking process.
|
||||
"""
|
||||
|
||||
import asyncio
|
||||
import logging
|
||||
from crossfit_booker import CrossFitBooker
|
||||
|
||||
def main():
|
||||
"""
|
||||
Main function to initialize the CrossFitBooker and start the booking process.
|
||||
"""
|
||||
# Set up logging
|
||||
logging.basicConfig(
|
||||
level=logging.INFO,
|
||||
format='%(asctime)s - %(levelname)s - %(message)s',
|
||||
handlers=[
|
||||
logging.StreamHandler()
|
||||
]
|
||||
)
|
||||
|
||||
# Initialize the CrossFitBooker
|
||||
booker = CrossFitBooker()
|
||||
|
||||
# Run the booking process
|
||||
booker.run()
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user