added batch file.

This commit is contained in:
2026-03-22 23:39:52 -04:00
parent 78a6d73c11
commit 2a2260cda7
2 changed files with 38 additions and 0 deletions

4
.gitignore vendored
View File

@@ -1 +1,5 @@
/data/ /data/
*.dat
*.json
/ynab.yml
/.venv/

34
fargo.bat Normal file
View File

@@ -0,0 +1,34 @@
@echo off
:: ============================================================
:: FargoImport - run.bat
:: Runs main.py using the project's virtual environment.
::
:: Usage examples:
::
:: Credit only:
:: run.bat --credit fetch.dat
::
:: Debit only:
:: run.bat --debit fetch.dat
::
:: Both at once and import to YNAB:
:: run.bat --credit credit.dat --debit debit.dat --ynab-import
::
:: List YNAB transactions from the past 7 days:
:: run.bat --ynab-transactions 7
::
:: Increase lookback window to 7 days:
:: run.bat --credit credit.dat --debit debit.dat --lookback 7
:: ============================================================
:: Change to the folder this .bat file lives in
cd /d "%~dp0"
:: Activate the virtual environment
call .venv\Scripts\activate.bat
:: Run main.py, forwarding all arguments passed to this script
python main.py %*
:: Keep the window open so you can read the output
pause