hledger/hledger/Hledger/Cli/Commands
2020-03-19 16:03:58 -07:00
..
Accounts.hs code: Strip extraneous trailing whitespace from Haskell sources 2019-07-15 16:40:49 +01:00
Accounts.md ;doc: fix flags marker appearing in manuals 2020-01-05 07:41:01 -08:00
Accounts.txt ;doc: fix flags marker appearing in manuals 2020-01-05 07:41:01 -08:00
Activity.hs code: Strip extraneous trailing whitespace from Haskell sources 2019-07-15 16:40:49 +01:00
Activity.md ;doc: fix flags marker appearing in manuals 2020-01-05 07:41:01 -08:00
Activity.txt ;doc: fix flags marker appearing in manuals 2020-01-05 07:41:01 -08:00
Add.hs lib: Replace some utility functions with library functions. 2020-03-02 12:45:30 -08:00
Add.md ;doc: fix flags marker appearing in manuals 2020-01-05 07:41:01 -08:00
Add.txt ;doc: fix flags marker appearing in manuals 2020-01-05 07:41:01 -08:00
Balance.hs bs,cf,is,bal,print,reg: support json output format 2020-02-24 17:49:53 -08:00
Balance.md ;bal: doc: recommend using the same commodity for budget goals 2020-03-19 16:03:58 -07:00
Balance.txt ;doc: regen manuals 2020-03-01 17:29:01 -08:00
Balancesheet.hs refactor: cli: commands: hlint clean 2019-02-14 05:15:49 -08:00
Balancesheet.md bs,cf,is,bal,print,reg: support json output format 2020-02-24 17:49:53 -08:00
Balancesheet.txt ;doc: regen manuals 2020-03-01 17:29:01 -08:00
Balancesheetequity.hs refactor: cli: commands: hlint clean 2019-02-14 05:15:49 -08:00
Balancesheetequity.md bs,cf,is,bal,print,reg: support json output format 2020-02-24 17:49:53 -08:00
Balancesheetequity.txt ;doc: regen manuals 2020-03-01 17:29:01 -08:00
Cashflow.hs refactor: cli: commands: hlint clean 2019-02-14 05:15:49 -08:00
Cashflow.md bs,cf,is,bal,print,reg: support json output format 2020-02-24 17:49:53 -08:00
Cashflow.txt ;doc: regen manuals 2020-03-01 17:29:01 -08:00
Checkdates.hs Add exit status code to check-dates 2019-11-23 13:43:47 -08:00
Checkdates.md ;doc: fix flags marker appearing in manuals 2020-01-05 07:41:01 -08:00
Checkdates.txt ;doc: fix flags marker appearing in manuals 2020-01-05 07:41:01 -08:00
Checkdupes.hs Use nubSort instead of nub . sort. 2020-01-04 08:31:10 -08:00
Checkdupes.md ;checkdupes: help: fix link 2020-01-28 09:20:42 -08:00
Checkdupes.txt ;doc: fix flags marker appearing in manuals 2020-01-05 07:41:01 -08:00
Close.hs close: regularise the --open*/--close* flags for memorability (#1165) 2020-01-22 15:19:24 -08:00
Close.md ;close: doc: cleanups, remove dangerous >> example (#1165) 2020-01-22 15:32:36 -08:00
Close.txt ;close: doc: cleanups, remove dangerous >> example (#1165) 2020-01-22 15:32:36 -08:00
Commodities.hs Use nubSort instead of nub . sort. 2020-01-04 08:31:10 -08:00
Commodities.md ;doc: fix flags marker appearing in manuals 2020-01-05 07:41:01 -08:00
Commodities.txt ;doc: fix flags marker appearing in manuals 2020-01-05 07:41:01 -08:00
Descriptions.hs Use nubSort instead of nub . sort. 2020-01-04 08:31:10 -08:00
Descriptions.md ;doc: fix flags marker appearing in manuals 2020-01-05 07:41:01 -08:00
Descriptions.txt ;doc: fix flags marker appearing in manuals 2020-01-05 07:41:01 -08:00
Diff.hs diff: help tweaks (cf #981) 2019-03-09 09:45:30 -08:00
Diff.md ;doc: fix flags marker appearing in manuals 2020-01-05 07:41:01 -08:00
Diff.txt ;doc: fix flags marker appearing in manuals 2020-01-05 07:41:01 -08:00
Files.hs code: Strip extraneous trailing whitespace from Haskell sources 2019-07-15 16:40:49 +01:00
Files.md ;doc: fix flags marker appearing in manuals 2020-01-05 07:41:01 -08:00
Files.txt ;doc: fix flags marker appearing in manuals 2020-01-05 07:41:01 -08:00
Help.hs code: Strip extraneous trailing whitespace from Haskell sources 2019-07-15 16:40:49 +01:00
Help.md ;doc: fix flags marker appearing in manuals 2020-01-05 07:41:01 -08:00
Help.txt ;doc: fix flags marker appearing in manuals 2020-01-05 07:41:01 -08:00
Import.hs web: edit/upload: normalise line endings, avoiding parse errors (#1194) 2020-02-24 14:04:44 -08:00
Import.md ;doc: fix flags marker appearing in manuals 2020-01-05 07:41:01 -08:00
Import.txt ;doc: fix flags marker appearing in manuals 2020-01-05 07:41:01 -08:00
Incomestatement.hs refactor: cli: commands: hlint clean 2019-02-14 05:15:49 -08:00
Incomestatement.md bs,cf,is,bal,print,reg: support json output format 2020-02-24 17:49:53 -08:00
Incomestatement.txt ;doc: regen manuals 2020-03-01 17:29:01 -08:00
Notes.hs Use nubSort instead of nub . sort. 2020-01-04 08:31:10 -08:00
Notes.md ;doc: fix flags marker appearing in manuals 2020-01-05 07:41:01 -08:00
Notes.txt ;doc: fix flags marker appearing in manuals 2020-01-05 07:41:01 -08:00
Payees.hs Use nubSort instead of nub . sort. 2020-01-04 08:31:10 -08:00
Payees.md ;doc: fix flags marker appearing in manuals 2020-01-05 07:41:01 -08:00
Payees.txt ;doc: fix flags marker appearing in manuals 2020-01-05 07:41:01 -08:00
Prices.hs prices: style price amounts; always show full precision 2019-10-20 07:09:34 -07:00
Prices.md ;doc: fix flags marker appearing in manuals 2020-01-05 07:41:01 -08:00
Prices.txt ;doc: fix flags marker appearing in manuals 2020-01-05 07:41:01 -08:00
Print.hs bs,cf,is,bal,print,reg: support json output format 2020-02-24 17:49:53 -08:00
Print.md bs,cf,is,bal,print,reg: support json output format 2020-02-24 17:49:53 -08:00
Print.txt ;doc: regen manuals 2020-03-01 17:29:01 -08:00
Printunique.hs Use nubSort instead of nub . sort. 2020-01-04 08:31:10 -08:00
Printunique.md ;doc: fix flags marker appearing in manuals 2020-01-05 07:41:01 -08:00
Printunique.txt ;doc: fix flags marker appearing in manuals 2020-01-05 07:41:01 -08:00
README.md ;doc: fix flags marker appearing in manuals 2020-01-05 07:41:01 -08:00
Register.hs lib: Hledger.Read.CsvReader cleanup 2020-02-27 23:37:32 -08:00
Register.md bs,cf,is,bal,print,reg: support json output format 2020-02-24 17:49:53 -08:00
Register.txt ;doc: regen manuals 2020-03-01 17:29:01 -08:00
Registermatch.hs code: Strip extraneous trailing whitespace from Haskell sources 2019-07-15 16:40:49 +01:00
Registermatch.md ;doc: fix flags marker appearing in manuals 2020-01-05 07:41:01 -08:00
Registermatch.txt ;doc: fix flags marker appearing in manuals 2020-01-05 07:41:01 -08:00
Rewrite.hs ;lib: clean out showTransactionUnelided 2019-11-16 12:53:07 +01:00
Rewrite.md ;doc: fix flags marker appearing in manuals 2020-01-05 07:41:01 -08:00
Rewrite.txt ;doc: fix flags marker appearing in manuals 2020-01-05 07:41:01 -08:00
Roi.hs lib: roi does not fail on empty input data (+test) 2019-11-18 16:13:04 -08:00
Roi.md ;doc: fix flags marker appearing in manuals 2020-01-05 07:41:01 -08:00
Roi.txt ;doc: fix flags marker appearing in manuals 2020-01-05 07:41:01 -08:00
Stats.hs Use nubSort instead of nub . sort. 2020-01-04 08:31:10 -08:00
Stats.md ;doc: fix flags marker appearing in manuals 2020-01-05 07:41:01 -08:00
Stats.txt ;doc: fix flags marker appearing in manuals 2020-01-05 07:41:01 -08:00
Tags.hs ;lib: store raw opts unquoted 2019-10-19 14:44:08 -07:00
Tags.md ;doc: fix flags marker appearing in manuals 2020-01-05 07:41:01 -08:00
Tags.txt ;doc: fix flags marker appearing in manuals 2020-01-05 07:41:01 -08:00
Test.md ;doc: fix flags marker appearing in manuals 2020-01-05 07:41:01 -08:00
Test.txt ;doc: fix flags marker appearing in manuals 2020-01-05 07:41:01 -08:00

hledgers built-in commands.

Each command has a similarly-named code module, Somecommand.hs, and documentation file, Somecommand.md.

The command doc is converted to plain text in Somecommand.txt, and which is included by Somecommand.hs to form command line help (the output of hledger COMMAND --help).

After changing md files, regenerating and committing the txt files is optional. If you dont do it, it will get done later (before release). It can be done by:

./Shake commandhelp

Or, by you can regenerate them while also building packages:

./Shake hledger   # or, all packages: ./Shake build

Builds made with stack, cabal, etc. wont notice changes in these md files, so use the above method if you need that.

The md files are also included by hledger/hledger_commands.m4.md to form the hledger manual, which can be regenerated with:

./Shake manuals [website]

Here are more special features/conventions of command doc files (see *.md for examples):

  • The content is pandoc markdown. m4 macros are not supported.

  • In manuals, they are rendered with formatting and hyperlinks when supported by the various output formats.

  • In command line help, they are rendered as plain text, with verbatim blocks unindented, and with lines longer than 78 characters wrapped (unless they contain no spaces).

  • To avoid unsightly line wrapping in command line help, try to keep verbatim examples to at most 78 characters wide. When necessary, we may be forced to cheat and alter command output slightly, eg reducing the width of registers typically 79-wide reports by one.

  • The first line should specify the command name and any aliases, as words separated by spaces and/or commas. It should end with a backslash (to force a line break in the output).

  • Short help, about one paragraph in length, should begin on the second line.

  • If the short help is more than one line, its first line should end with a single newline, not two (otherwise it will be displayed with two newlines after each line in command line help).

  • In command line help, the short help is displayed with blank lines removed (paragraphs run together). Blank lines can still be used for markdown formatting though, eg to define a list.

  • After the short help, there should be a paragraph containing just _FLAGS. This marks the end of the short help, and it will be replaced in command line help by the flags list. (Without it, the flags list appears at the end of command line help.) The flags list will not appear in the hledger manual.

  • Long help (as many paragraphs as needed) follows the _FLAGS marker. This often ends with one or more examples.

XXX Command docs with examples wider than 78: close rewrite