diff options
| author | Danilo M. <danix@danix.xyz> | 2026-07-05 19:17:04 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-07-05 19:17:04 +0200 |
| commit | 50cb852130986249cacec411e23392a8610e12f1 (patch) | |
| tree | d49c544811f3f088b966046c859412f1b1015162 /completions | |
| parent | 2f768bb3373105e96d0cbc6fb4ba37c777bbca25 (diff) | |
| download | firefly-cli-master.tar.gz firefly-cli-master.zip | |
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 <noreply@anthropic.com>
Diffstat (limited to 'completions')
| -rw-r--r-- | completions/firefly.bash | 5 |
1 files changed, 3 insertions, 2 deletions
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 |
