fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
9367d4ff7
master
1# Generated by hand against hledger --help as of version 1.14.2. 2 3# TODO: Handle the -NUM form of --depth=NUM. 4 5set -l debug_opts' 61\tdefault 72\t 83\t 94\t 105\t 116\t 127\t 138\t 149\t 15' 16 17set -l takes_general_input_flags'add commodities files' 18set -l takes_general_reporting_flags'import check-dates check-dupes close equity rewrite balancesheet bs balancesheetequity bse cashflow cf incomestatement is roi accounts a activity balance bal b prices print txns p print-unique register reg r register-match stats tags' 19 20# General input flags 21complete -c hledger -r -s f -l file -d'Input file' -n"__fish_seen_subcommand_from $takes_general_input_flags $takes_general_reporting_flags " 22complete -c hledger -r -l rules-file -d'CSV-conversion-rules file' -n"__fish_seen_subcommand_from $takes_general_input_flags $takes_general_reporting_flags " 23complete -c hledger -x -l separator -d'CSV separator' -n"__fish_seen_subcommand_from $takes_general_input_flags $takes_general_reporting_flags " 24complete -c hledger -r -l alias -d'Rename account' -n"__fish_seen_subcommand_from $takes_general_input_flags $takes_general_reporting_flags " 25complete -c hledger -f -l anon -d'Anonymize accounts and payees' -n"__fish_seen_subcommand_from $takes_general_input_flags $takes_general_reporting_flags " 26complete -c hledger -x -l pivot -d'Use some other field/tag for account names' -n"__fish_seen_subcommand_from $takes_general_input_flags $takes_general_reporting_flags " 27complete -c hledger -x -s I -l ignore-assertions -d'Ignore any balance assertions' -n"__fish_seen_subcommand_from $takes_general_input_flags $takes_general_reporting_flags " 28 29# General reporting flags 30complete -c hledger -x -s b -l begin -d'Include postings/txns on or after this date' -n"__fish_seen_subcommand_from $takes_general_reporting_flags " 31complete -c hledger -x -s e -l end -d'Include postings/txns before this date' -n"__fish_seen_subcommand_from $takes_general_reporting_flags " 32complete -c hledger -f -s D -l daily -d'Multiperiod/multicolumn report by day' -n"__fish_seen_subcommand_from $takes_general_reporting_flags " 33complete -c hledger -f -s W -l weekly -d'Multiperiod/multicolumn report by week' -n"__fish_seen_subcommand_from $takes_general_reporting_flags " 34complete -c hledger -f -s M -l monthly -d'Multiperiod/multicolumn report by month' -n"__fish_seen_subcommand_from $takes_general_reporting_flags " 35complete -c hledger -f -s Q -l quarterly -d'Multiperiod/multicolumn report by quarter' -n"__fish_seen_subcommand_from $takes_general_reporting_flags " 36complete -c hledger -f -s Y -l yearly -d'Multiperiod/multicolumn report by year' -n"__fish_seen_subcommand_from $takes_general_reporting_flags " 37complete -c hledger -x -s p -l period -d'Set start date, end date, and report interval' -n"__fish_seen_subcommand_from $takes_general_reporting_flags " 38complete -c hledger -f -l date2 -d'Match secondary date instead' -n"__fish_seen_subcommand_from $takes_general_reporting_flags " 39complete -c hledger -f -s U -l unmarked -d'Include only unmarked postings/txns' -n"__fish_seen_subcommand_from $takes_general_reporting_flags " 40complete -c hledger -f -s P -l pending -d'Include only pending (“!”) postings/txns' -n"__fish_seen_subcommand_from $takes_general_reporting_flags " 41complete -c hledger -f -s C -l cleared -d'Include only cleared (“*”) postings/txns' -n"__fish_seen_subcommand_from $takes_general_reporting_flags " 42complete -c hledger -f -s R -l real -d'Include only non-virtual postings' -n"__fish_seen_subcommand_from $takes_general_reporting_flags " 43complete -c hledger -x -l depth -d'Hide accounts/postings deeper than this' -n"__fish_seen_subcommand_from $takes_general_reporting_flags " 44complete -c hledger -f -s E -l empty -d'Show items with zero amount' -n"__fish_seen_subcommand_from $takes_general_reporting_flags " 45complete -c hledger -f -s B -l cost -d'Converts amounts to their cost at txn time' -n"__fish_seen_subcommand_from $takes_general_reporting_flags " 46complete -c hledger -f -s V -l value -d'Converts amounts to their market value on report end date' -n"__fish_seen_subcommand_from $takes_general_reporting_flags " 47complete -c hledger -f -l auto -d'Apply automated posting rules to modify txns' -n"__fish_seen_subcommand_from $takes_general_reporting_flags " 48complete -c hledger -f -l forecast -d'Apply periodic txn rules to generate future txns' -n"__fish_seen_subcommand_from $takes_general_reporting_flags " 49 50# General help flags 51complete -c hledger -x -s h -l help -d'Show help for this command' 52complete -c hledger -x -l debug -a" $debug_opts " -d'Show debug output' 53complete -c hledger -x -l version -d'Show version information' 54 55# Commands 56 57# Data entry 58complete -c hledger -f -n __fish_use_subcommand -a add -d'Add transactions using guided prompts' 59complete -c hledger -f -n'__fish_seen_subcommand_from add' -l no-new-accounts -d'Don’t allow creating new accounts' 60 61complete -c hledger -n __fish_use_subcommand -a import -d'Add new transactions from other files' 62complete -c hledger -f -n'__fish_seen_subcommand_from import' -l dry-run -d'Just show the transactions to be imported' 63 64# Data management 65complete -c hledger -f -n __fish_use_subcommand -a check-dates -d'Ensure transactions are ordered by date' 66complete -c hledger -f -n'__fish_seen_subcommand_from check-dates' -l strict -d'Makes date comparing strict' 67 68complete -c hledger -f -n __fish_use_subcommand -a check-dupes -d'Ensure accounts have different leaf names' 69 70complete -c hledger -f -n __fish_use_subcommand -a'close equity' -d'Generate balance-resetting transactions' 71complete -c hledger -f -n'__fish_seen_subcommand_from close' -l opening -d'Show just opening transaction' 72complete -c hledger -f -n'__fish_seen_subcommand_from close' -l closing -d'Show just closing transaction' 73 74complete -c hledger -f -n __fish_use_subcommand -a rewrite -d'Generate automated postings/diffs' 75complete -c hledger -f -n'__fish_seen_subcommand_from rewrite' -l add-posting -d'Add a posting to account' 76complete -c hledger -f -n'__fish_seen_subcommand_from rewrite' -l diff -d'Generate diff suitable for patch(1)' 77 78# Financial reports 79set -l financial_reports_commands'balancesheet bs balancesheetequity bse cashflow cf incomestatement is' # these four (but not roi!) use the same commands 80complete -c hledger -f -n __fish_use_subcommand -a'balancesheet bs' -d'Show assets, liabilities, and net worth' 81complete -c hledger -f -n __fish_use_subcommand -a'balancesheetequity bse' -d'Show assets, liabilities, and equity' 82complete -c hledger -f -n __fish_use_subcommand -a'cashflow cf' -d'Show changes in liquid assets' 83complete -c hledger -f -n __fish_use_subcommand -a'incomestatement is' -d'Show revenues and expenses' 84complete -c hledger -f -n"__fish_seen_subcommand_from $financial_reports_commands " -l change -d'Show balance change in each period' 85complete -c hledger -f -n"__fish_seen_subcommand_from $financial_reports_commands " -l cumulative -d'Show balance change accumulated across periods' 86complete -c hledger -f -n"__fish_seen_subcommand_from $financial_reports_commands " -s H -l historical -d'Show historical ending balance in each period' 87complete -c hledger -f -n"__fish_seen_subcommand_from $financial_reports_commands " -l flat -d'Show accounts as a list' 88complete -c hledger -x -n"__fish_seen_subcommand_from $financial_reports_commands " -l drop -d'Omit N leading account-name parts (in flat mode)' 89complete -c hledger -f -n"__fish_seen_subcommand_from $financial_reports_commands " -s N -l no-total -d'Omit the final total row' 90complete -c hledger -f -n"__fish_seen_subcommand_from $financial_reports_commands " -l tree -d'Show accounts as a tree; amounts include subaccounts' 91complete -c hledger -f -n"__fish_seen_subcommand_from $financial_reports_commands " -s A -l average -d'Show a row average column in multicolumn reports' 92complete -c hledger -f -n"__fish_seen_subcommand_from $financial_reports_commands " -s T -l row-total -d'Show a row total column in multicolumn reports' 93complete -c hledger -f -n"__fish_seen_subcommand_from $financial_reports_commands " -l no-elide -d'Don’t squash boring parent accounts in tree mode' 94complete -c hledger -x -n"__fish_seen_subcommand_from $financial_reports_commands " -l format -d'Use a custom line format in multicolumn reports' 95complete -c hledger -f -n"__fish_seen_subcommand_from $financial_reports_commands " -l pretty-tables -d'Use Unicode when displaying tables' 96complete -c hledger -f -n"__fish_seen_subcommand_from $financial_reports_commands " -s S -l sort-amount -d'Sort by amount instead of account code/name' 97complete -c hledger -f -n"__fish_seen_subcommand_from $financial_reports_commands " -s O -l output-format -a'txt csv html' -d'Select an output format' 98complete -c hledger -r -n"__fish_seen_subcommand_from $financial_reports_commands " -s o -l output-file -d'Write output to given file; extension selects format' 99 100complete -c hledger -f -n __fish_use_subcommand -a roi -d'Show return on investments' 101complete -c hledger -f -n'__fish_seen_subcommand_from roi' -l cashflow -d'Show all amounts that were used to compute returns' 102complete -c hledger -x -n'__fish_seen_subcommand_from roi' -l investment -d'Query to select investment transactions' 103complete -c hledger -x -n'__fish_seen_subcommand_from roi' -l profit-loss -l pnl -d'Query to select profit-and-loss or appreciation/valuation transactions' 104 105# Low-level reports 106complete -c hledger -f -n __fish_use_subcommand -a accounts -d'Show account names' 107complete -c hledger -f -n'__fish_seen_subcommand_from accounts' -l declared -d'Show account names declared with account directives' 108complete -c hledger -f -n'__fish_seen_subcommand_from accounts' -l used -d'Show account names referenced by transactions' 109complete -c hledger -f -n'__fish_seen_subcommand_from accounts' -l tree -d'Show short account names as a tree' 110complete -c hledger -f -n'__fish_seen_subcommand_from accounts' -l flat -d'Show short account names as a list' 111complete -c hledger -x -n'__fish_seen_subcommand_from accounts' -l drop -d'Omit N leading account name parts in flat mode' 112 113complete -c hledger -f -n __fish_use_subcommand -a activity -d'Show postings-per-interval bar charts' 114 115complete -c hledger -f -n __fish_use_subcommand -a balance -d'Show balance changes/end balances/budgets in accounts' 116complete -c hledger -f -n'__fish_seen_subcommand_from balance' -l change -d'Show balance change in each period' 117complete -c hledger -f -n'__fish_seen_subcommand_from balance' -l cumulative -d'Show balance change accumulated across periods' 118complete -c hledger -f -n'__fish_seen_subcommand_from balance' -s H -l historical -d'Show historical ending balance in each period' 119complete -c hledger -f -n'__fish_seen_subcommand_from balance' -l tree -d'Show accounts as a tree' 120complete -c hledger -f -n'__fish_seen_subcommand_from balance' -l flat -d'Show accounts as a list' 121complete -c hledger -f -n'__fish_seen_subcommand_from balance' -s A -l average -d'Show a row average column in multicolumn reports' 122complete -c hledger -f -n'__fish_seen_subcommand_from balance' -s T -l row-total -d'Show a row total column in multicolumn reports' 123complete -c hledger -f -n'__fish_seen_subcommand_from balance' -s N -l no-total -d'Omit the final row' 124complete -c hledger -x -n'__fish_seen_subcommand_from balance' -l drop -d'Omit N leading account name parts in flat mode' 125complete -c hledger -f -n'__fish_seen_subcommand_from balance' -l no-elide -d'Don’t squash boring parent accounts in tree mode' 126complete -c hledger -x -n'__fish_seen_subcommand_from balance' -l format -d'Use a custom line format in multicolumn reports' 127complete -c hledger -f -n'__fish_seen_subcommand_from balance' -l pretty-tables -d'Use Unicode when displaying tables' 128complete -c hledger -f -n'__fish_seen_subcommand_from balance' -s S -l sort-amount -d'Sort by amount instead of account code/name' 129complete -c hledger -f -n'__fish_seen_subcommand_from balance' -l budget -d'Show performance compared to budget goals defined by periodic transactions' 130complete -c hledger -f -n'__fish_seen_subcommand_from balance' -l invert -d'Display all amounts with reversed sign' 131complete -c hledger -f -n'__fish_seen_subcommand_from balance' -l transpose -d'Transpose rows and columns' 132complete -c hledger -x -n'__fish_seen_subcommand_from balance' -s O -l output-format -a'txt csv html' -d'Select an output format' 133complete -c hledger -r -n'__fish_seen_subcommand_from balance' -s o -l output-file -d'Write output to given file; extension selects format' 134 135complete -c hledger -f -n __fish_use_subcommand -a commodities -d'Show commodity/currency symbols' 136 137complete -c hledger -f -n __fish_use_subcommand -a files -d'Show input file paths' 138 139complete -c hledger -f -n __fish_use_subcommand -a prices -d'Show market-price records' 140complete -c hledger -f -n'__fish_seen_subcommand_from prices' -l costs -d'Print transaction prices from postings' 141complete -c hledger -f -n'__fish_seen_subcommand_from prices' -l inverted-costs -d'Print transaction inverted prices from postings also' 142 143complete -c hledger -f -n __fish_use_subcommand -a'print txns' -d'Show transactions' 144complete -c hledger -f -n __fish_use_subcommand -a print-unique -d'Show only transactions with unique descriptions' 145complete -c hledger -x -n'__fish_seen_subcommand_from print txns print-unique' -s m -l match -d'Show the most-recent transaction most similar to STR' 146complete -c hledger -f -n'__fish_seen_subcommand_from print txns print-unique' -s x -l explicit -d'Show all amounts explicitly' 147complete -c hledger -f -n'__fish_seen_subcommand_from print txns print-unique' -l new -d'Show only newer-dated transactions added in each file since last run' 148complete -c hledger -x -n'__fish_seen_subcommand_from print txns print-unique' -s O -l output-format -a'txt csv html' -d'Select an output format' 149complete -c hledger -r -n'__fish_seen_subcommand_from print txns print-unique' -s o -l output-file -d'Write output to given file; extension selects format' 150 151complete -c hledger -f -n __fish_use_subcommand -a register -d'Show postings in one or more accounts & running total' 152complete -c hledger -f -n'__fish_seen_subcommand_from register' -l cumulative -d'Show running total from report start date' 153complete -c hledger -f -n'__fish_seen_subcommand_from register' -s H -l historical -d'Show historical running total/balance' 154complete -c hledger -f -n'__fish_seen_subcommand_from register' -s A -l average -d'Show running average of posting amounts instead of total (implies --empty)' 155complete -c hledger -f -n'__fish_seen_subcommand_from register' -s r -l related -d'Show postings’ siblings instead' 156complete -c hledger -f -n'__fish_seen_subcommand_from register' -l invert -d'Display all amounts with reversed sign' 157complete -c hledger -x -n'__fish_seen_subcommand_from register' -s w -l width -d'Set output width (defaults to terminal width or $COLUMNS)' 158complete -c hledger -x -n'__fish_seen_subcommand_from register' -s O -l output-format -a'txt csv html' -d'Select an output format' 159complete -c hledger -r -n'__fish_seen_subcommand_from register' -s o -l output-file -d'Write output to given file; extension selects format' 160 161complete -c hledger -f -n __fish_use_subcommand -a register-match -d'Show a recent posting that best matches a description' 162 163complete -c hledger -f -n __fish_use_subcommand -a stats -d'Show journal statistics' 164complete -c hledger -r -n'__fish_seen_subcommand_from stats' -s o -l output-file -d'Write output to given file; extension selects format' 165 166complete -c hledger -f -n __fish_use_subcommand -a tags -d'Show tag names' 167 168complete -c hledger -f -n __fish_use_subcommand -a test -d'Run self-tests' 169 170# Help 171complete -c hledger -f -n __fish_use_subcommand -a help -d'Show hledger manual list'