mirror of
https://github.com/simonmichael/hledger.git
synced 2024-09-18 17:57:11 +03:00
;bin:justfile: rename forecast.journal, forecast-import refinement
This commit is contained in:
parent
7970ce7434
commit
f157720fa3
11
bin/justfile
11
bin/justfile
@ -94,9 +94,14 @@ household:
|
|||||||
|
|
||||||
# import any new forecast transactions; add --dry to preview
|
# import any new forecast transactions; add --dry to preview
|
||||||
@forecast-import *ARGS:
|
@forecast-import *ARGS:
|
||||||
echo "forecasting transactions"
|
#!/usr/bin/env bash
|
||||||
hledger import future.journal --forecast=15daysago..15days --auto -I {{ ARGS }} 2>>import.log || echo "Failed, check import.log"
|
echo "importing transactions from forecast rules"
|
||||||
|
hledger import forecast.journal --forecast=15daysago..15days --auto -I {{ ARGS }} 2>>import.log || echo "Failed, check import.log"
|
||||||
|
if [[ "$ARGS" != *"--dry"* ]]; then
|
||||||
|
echo "(remove any near-future transactions included for preview)"
|
||||||
|
echo "resetting .latest.forecast.journal to today's date"
|
||||||
|
date +%Y-%m-%d >.latest.forecast.journal
|
||||||
|
fi
|
||||||
|
|
||||||
# get and import all the above; add --dry to preview
|
# get and import all the above; add --dry to preview
|
||||||
@import *ARGS:
|
@import *ARGS:
|
||||||
|
Loading…
Reference in New Issue
Block a user