added batch file.
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -1 +1,5 @@
|
|||||||
/data/
|
/data/
|
||||||
|
*.dat
|
||||||
|
*.json
|
||||||
|
/ynab.yml
|
||||||
|
/.venv/
|
||||||
|
|||||||
34
fargo.bat
Normal file
34
fargo.bat
Normal 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
|
||||||
Reference in New Issue
Block a user