aboutsummaryrefslogtreecommitdiffstats
path: root/completions/firefly.bash
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-06-30 17:55:30 +0200
committerDanilo M. <danix@danix.xyz>2026-06-30 17:55:30 +0200
commit38d7357f36e6eeb91216d1c5668fb29406c7e076 (patch)
treec9215bfd05ae08198e5dd02b8f4e7c9762dcbc77 /completions/firefly.bash
parent39d9c808c4f599d0708eccdaf883147e6cd1e9b9 (diff)
downloadfirefly-cli-master.tar.gz
firefly-cli-master.zip
feat: add tx edit and tx delete (v0.3.0)HEADv0.3.0master
Implements ISSUES.md #1, the missing other half of an import tool: correcting and removing mis-imported transactions without the web UI. - tx edit <id>: PATCH a single-split journal; only the fields passed are sent (--amount/--date/--desc/--from/--to/--category/--tags/--type). Errors if no field is given. Accounts resolve to ids; category/tags pass raw. - tx delete <id>: requires --yes (no interactive prompt, agent-first); prints {"deleted": "<id>"} on success. Also fix gen_completion.py: running it as a script put scripts/ on sys.path[0] and imported the installed (stale) firefly_cli, so the generated completion drifted (missing account balance/get, tx get/search). Prepend the repo root so the documented regen command uses this tree. The regenerated completion now reflects the full command surface. MINOR bump per the contract-keyed scheme: new commands, no breaking change. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'completions/firefly.bash')
-rw-r--r--completions/firefly.bash4
1 files changed, 3 insertions, 1 deletions
diff --git a/completions/firefly.bash b/completions/firefly.bash
index c118f52..b66b400 100644
--- a/completions/firefly.bash
+++ b/completions/firefly.bash
@@ -40,6 +40,8 @@ _firefly() {
"account create") leaf_opts="--currency --opening-balance --type";;
"account list") leaf_opts="--type";;
"tx add") leaf_opts="--category --date --desc --from --tags --to --type";;
+ "tx delete") leaf_opts="--yes";;
+ "tx edit") leaf_opts="--amount --category --date --desc --from --tags --to --type";;
"tx list") leaf_opts="--account --limit --since --until";;
esac
@@ -50,7 +52,7 @@ _firefly() {
account) leaves="balance create get list";;
category) leaves="list";;
tag) leaves="list";;
- tx) leaves="add get list search";;
+ tx) leaves="add delete edit get list search";;
esac
if [[ -z $group ]]; then