feat: bin: watchaccounts
This commit is contained in:
parent
d5fa141176
commit
a6cc98521d
@ -50,6 +50,16 @@ $ . bin/bashrc
|
|||||||
$ fin # list the scripts available
|
$ fin # list the scripts available
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### watchaccounts
|
||||||
|
|
||||||
|
[`watchaccounts`](https://github.com/simonmichael/hledger/blob/master/bin/watchaccounts)
|
||||||
|
shows hledger account names, updating on file change under the current directory.
|
||||||
|
Arguments are passed to the `hledger accounts` command. Useful when cleaning up accounts.
|
||||||
|
```cli
|
||||||
|
$ watchaccounts expenses -2
|
||||||
|
$ watchaccounts -f time.journal client1 date:thismonth -l
|
||||||
|
```
|
||||||
|
|
||||||
### hledger-simplebal
|
### hledger-simplebal
|
||||||
|
|
||||||
[`hledger-simplebal`](https://github.com/simonmichael/hledger/blob/master/bin/hledger-simplebal)
|
[`hledger-simplebal`](https://github.com/simonmichael/hledger/blob/master/bin/hledger-simplebal)
|
||||||
|
|||||||
9
bin/watchaccounts
Executable file
9
bin/watchaccounts
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Watch hledger account names, updating on file change under the current directory.
|
||||||
|
# Arguments are passed to hledger. Useful when cleaning up accounts.
|
||||||
|
# Requires watchexec.
|
||||||
|
# Examples:
|
||||||
|
# watchaccounts expenses -2
|
||||||
|
# watchaccounts -f time.journal client1 date:thismonth -l
|
||||||
|
|
||||||
|
watchexec -c -- "echo ==; hledger accounts -t" $@
|
||||||
Loading…
Reference in New Issue
Block a user