Skip to content

Commit

Permalink
Add initial reporting functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
bartfeenstra committed Jan 2, 2024
1 parent 2ad7169 commit 889bd82
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
16 changes: 16 additions & 0 deletions ancestry/report.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import logging
from pathlib import Path

from betty.app import App
from betty.asyncio import sync
from betty.load import load
from betty.logging import CliHandler


@sync
async def report() -> None:
async with App() as app:
await app.project.configuration.read(Path(__file__).parent.parent / 'betty.yaml')
logging.getLogger().addHandler(CliHandler())
logging.getLogger('betty').setLevel(logging.DEBUG)
await load(app)
8 changes: 8 additions & 0 deletions bin/report
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

set -Eeuo pipefail

cd "$(dirname "$0")/.."

rm -rf ./output
betty -vv -c ./betty.yaml generate

0 comments on commit 889bd82

Please sign in to comment.