From 50cb852130986249cacec411e23392a8610e12f1 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Sun, 5 Jul 2026 19:17:04 +0200 Subject: feat(budget): tx edit --budget and budget update (v0.5.0) Add two deferred budget follow-ups: - tx edit --budget: re-assign a budget on an existing transaction, mirroring the existing tx add --budget flag (name/id resolved, hard error on miss). Resolves the ISSUES.md backfill wish. - budget update: rename a budget and/or edit its auto-budget fields via PUT /budgets/{id}; only fields passed are sent, empty is a hard error. New command adds to the CLI surface without breaking callers, so this is a MINOR bump (0.4.1 -> 0.5.0). Docs (README, SKILL.md), completion, and TODO synced. The tx add --budget-id item stays open (still YAGNI). Co-Authored-By: Claude Opus 4.8 --- completions/firefly.bash | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'completions') diff --git a/completions/firefly.bash b/completions/firefly.bash index 06df14e..34171f9 100644 --- a/completions/firefly.bash +++ b/completions/firefly.bash @@ -42,12 +42,13 @@ _firefly() { "account list") leaf_opts="--type";; "tx add") leaf_opts="--budget --category --date --desc --dry-run --from --from-id --skip-dupes --tags --to --to-id --type";; "tx delete") leaf_opts="--yes";; - "tx edit") leaf_opts="--amount --category --date --desc --from --tags --to --type";; + "tx edit") leaf_opts="--amount --budget --category --date --desc --from --tags --to --type";; "tx list") leaf_opts="--account --all --flat --limit --since --until";; "budget create") leaf_opts="--active --auto-budget-amount --auto-budget-period --auto-budget-type --currency --inactive";; "budget delete") leaf_opts="--yes";; "budget limit-set") leaf_opts="--amount --currency --end --start";; "budget list") leaf_opts="--end --start";; + "budget update") leaf_opts="--auto-budget-amount --auto-budget-period --auto-budget-type --currency --name";; esac # Leaves per group. @@ -58,7 +59,7 @@ _firefly() { category) leaves="list";; tag) leaves="list";; tx) leaves="add delete edit get list search";; - budget) leaves="create delete disable enable limit-list limit-set list";; + budget) leaves="create delete disable enable limit-list limit-set list update";; esac # Flag values: when the previous word is a flag with a fixed value set for -- cgit v1.2.3