Add database initialization and CLI arguments

- Implement argparse for CLI use
- Setup SQLite DB with schema version checking
This commit is contained in:
2024-10-04 23:23:53 -04:00
parent 3f4fa3c10d
commit 01e68bc10f
3 changed files with 125 additions and 17 deletions

2
tarch
View File

@@ -2,6 +2,7 @@
# Create a virtual environment if it does not exist
if [ ! -d "venv" ]; then
# shellcheck disable=SC1091
python3 -m venv venv && \
source venv/bin/activate && \
pip install -r requirements.txt && \
@@ -9,6 +10,7 @@ if [ ! -d "venv" ]; then
fi
# Activate the virtual environment
# shellcheck disable=SC1091
source venv/bin/activate
# Run the Python script