summaryrefslogtreecommitdiffstats
path: root/TODO.md
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-07-01 11:02:32 +0200
committerDanilo M. <danix@danix.xyz>2026-07-01 11:02:32 +0200
commit238a4506cfeda388d097265b133004b63f130de6 (patch)
tree6d87a628df3472e3583b6dabedd3b611ab799edf /TODO.md
parent1c807048f8c754b421dae5a07ee8c053e3788348 (diff)
downloadfirefly-cli-0.3.4.tar.gz
firefly-cli-0.3.4.zip
feat: completion suggests --type values per commandv0.3.4
Tab-completing --type now offers the valid values instead of nothing: account list -> asset/expense/revenue/liability, account create -> asset/expense/revenue, tx add/edit -> withdrawal/deposit/transfer. Keyed per command off a static FLAG_VALUES map in gen_completion.py (types are a fixed Firefly enum, so no API call in the completion). Partial input filters and unrelated flags still complete normally. Completion-only: no CLI/JSON/exit change, ships under v0.3.4. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'TODO.md')
-rw-r--r--TODO.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/TODO.md b/TODO.md
index fdae0a1..fdbb4bc 100644
--- a/TODO.md
+++ b/TODO.md
@@ -29,4 +29,6 @@ bash completion).
- [ ] zsh / fish completion (bash done).
## UI/UX
-- [ ] completion needs to suggest based on `--type`. EG, `firefly --human account list --type` should suggest available account types.
+- [x] completion suggests values for `--type` (account: asset/expense/revenue
+ /liability, tx: withdrawal/deposit/transfer), keyed per command. Static
+ enum, no API call. See `FLAG_VALUES` in `scripts/gen_completion.py`.