-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2ad7169
commit 889bd82
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |