summaryrefslogtreecommitdiffstats
path: root/completions/firefly.bash
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-07-01 10:29:04 +0200
committerDanilo M. <danix@danix.xyz>2026-07-01 10:29:04 +0200
commitb078c5980facc0ebe4acd1f251f6ae3dad561292 (patch)
tree29611c1d9f039e96db81b4b2bc31b8d7729f0a36 /completions/firefly.bash
parent0c9939c5961a3cef50e6378c0eefbeaae00f4c67 (diff)
downloadfirefly-cli-b078c5980facc0ebe4acd1f251f6ae3dad561292.tar.gz
firefly-cli-b078c5980facc0ebe4acd1f251f6ae3dad561292.zip
feat: account balance --at for historical balance (v0.3.2)
Reconciliation needed an account's balance as of a past date; the command only reported the current balance, forcing hand-written sum scripts. --at YYYY-MM-DD re-fetches the account with Firefly's ?date= param, which recomputes current_balance as of that date (end of day, no client math). Without --at the current-balance path is unchanged (no extra API call). Verified live read-only against real data: Mediolanum current 183.23 vs --at 2026-06-10 164.38, boundary probe gives distinct daily balances. PATCH: new optional flag, contract unchanged. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'completions/firefly.bash')
-rw-r--r--completions/firefly.bash1
1 files changed, 1 insertions, 0 deletions
diff --git a/completions/firefly.bash b/completions/firefly.bash
index 697cd1a..b23f081 100644
--- a/completions/firefly.bash
+++ b/completions/firefly.bash
@@ -37,6 +37,7 @@ _firefly() {
local leaf_opts=""
case "$group $leaf" in
"auth set") leaf_opts="--token --url";;
+ "account balance") leaf_opts="--at";;
"account create") leaf_opts="--currency --opening-balance --type";;
"account list") leaf_opts="--type";;
"tx add") leaf_opts="--category --date --desc --from --tags --to --type";;