diff options
| author | Danilo M. <danix@danix.xyz> | 2026-07-01 11:37:53 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-07-01 11:37:53 +0200 |
| commit | 4588f4bf54ae6eefd7a75904d81ce2256afb805d (patch) | |
| tree | dade60deaee537480b4f6101c4fd6571dc1a69a1 /SKILL.md | |
| parent | 238a4506cfeda388d097265b133004b63f130de6 (diff) | |
| download | firefly-cli-4588f4bf54ae6eefd7a75904d81ce2256afb805d.tar.gz firefly-cli-4588f4bf54ae6eefd7a75904d81ce2256afb805d.zip | |
feat: tx add echoes transfer direction to stderr (v0.3.5)v0.3.5
Transfers are easy to reverse silently (swapped --from/--to), showing up
later as a 2x balance discrepancy (ISSUES.md #5). On a transfer, tx add now
prints "transfer: <from> → <to>, <amount>" to stderr before writing, in both
the real-write and --dry-run paths. stdout JSON and exit codes are unchanged,
so the contract holds; PATCH bump. Withdrawals/deposits are unaffected.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'SKILL.md')
| -rw-r--r-- | SKILL.md | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -92,6 +92,10 @@ firefly tx add 1800 --from Salary --to test01 --desc "June pay" ```bash firefly tx add 200 --from test01 --to Savings --type transfer ``` +For a transfer, `tx add` echoes `transfer: <from> → <to>, <amount>` to stderr +before writing (also in `--dry-run`) so a swapped `--from`/`--to` is caught +before it silently drifts balances by 2x the amount. stdout JSON is unchanged; +the hint is on stderr only. **Create an account** (when `tx add` errors that an account does not exist, and the user confirms it should be created): |
