- Move all parsing logic from parse_airbnb.py to agenda/airbnb.py - Update parse_airbnb.py to use the new library module - Add comprehensive tests in tests/test_airbnb.py covering all functions - Maintain backward compatibility for the command-line interface 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
20 lines
304 B
Python
Executable file
20 lines
304 B
Python
Executable file
#!/usr/bin/python3
|
|
|
|
import sys
|
|
|
|
import yaml
|
|
|
|
from agenda.airbnb import parse_multiple_files
|
|
|
|
|
|
def main() -> None:
|
|
"""Main function."""
|
|
|
|
filenames = sys.argv[1:]
|
|
bookings = parse_multiple_files(filenames)
|
|
print(yaml.dump(bookings, sort_keys=False))
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|