diff --git a/src/_hledger b/src/_hledger index ebb48d2..3223d37 100644 --- a/src/_hledger +++ b/src/_hledger @@ -16,14 +16,15 @@ # Description # ----------- # -# Completion script for hleder 0.23.2 ( http://hledger.org/ ) -# Last updated: 16.11.2014 +# Completion script for hleder 1.10 ( http://hledger.org/ ) +# Last updated: 29.07.2018 # # ------------------------------------------------------------------------------ # Authors # ------- # # * Valodim ( https://github.com/Valodim ) +# * fdw ( https://github.com/fdw ) # # ------------------------------------------------------------------------------ # Notes @@ -43,6 +44,7 @@ args=( '(-f --file)'{-f,--file}'=[use a different input file]:input file:_files' '--rules-file=[CSV conversion rules file]:rules file:_files' '--alias=[display accounts named OLD as NEW]:alias specification' + '--anon=[anonymize accounts and payees' '(-b --begin)'{-b,--begin}'=[include postings/txns on or after this date]:date' '(-e --end)'{-e,--end}'=[include postings/txns before this date]:date' '(-D --daily)'{-D,--daily}'[multiperiod/multicolumn report by day]' @@ -57,6 +59,9 @@ args=( '(--depth)--depth=[hide accounts/postings deeper than N]:depth' '(-E --empty)'{-E,--empty}'[show empty/zero things which are normally omitted]' '(-B --cost)'{-B,--cost}'[show amounts in their cost price'\''s commodity]' + '(-V --value)'{-V,--value}'[converts reported amounts to the current market value]' + '(-I --ignore-assertions'{-I,--ignore-assertions}'[ignore any failing balance assertions]' + '--forecast=[apply periodic transaction rules to generate future transactions]' ) _arguments -C "$args[@]" -A "-*" \ @@ -72,15 +77,19 @@ while (( $#state )); do cmds) typeset -a cmds cmds=( - 'print:show transaction entries' + 'print:show transaction entries (p, txns)' 'accounts:show account names' - 'balance:show accounts and balances (bal)' - 'register:show postings and running total (reg)' + 'balance:show accounts and balances (b, bal)' + 'register:show postings and running total (r, reg)' 'incomestatement:show an income statement (is)' 'balancesheet:show a balance sheet (bs)' 'cashflow:show a cashflow statement (cf)' 'activity:show an ascii barchart of posting counts per interval' 'stats:show some journal statistics' + 'add:prompt for transactions and add them to the journal' + 'close:print closing/opening transactions that bring some or all account balances to zero and back' + 'stats:show some journal statistics' + 'tags:list all the tag names used in the journal' ) _describe 'subcommands' cmds && ret=0 ;; @@ -141,6 +150,7 @@ while (( $#state )); do local -a accs keywords keywords=( + 'acct\::match account names' 'code\::match by transaction code' 'desc\::match transaction descriptions' 'tag\::match by tag name' @@ -149,6 +159,7 @@ while (( $#state )); do 'real\::match real/virtual transactions' 'empty\::match if amount is/is not zero' 'amt\::match transaction amount' + 'cur\::match by currency' ) if compset -P 'amt:'; then _message 'match amount (<, <=, >, >=, add sign for non-absolute match)' && ret=0