hledger/hledger/Hledger/Cli/Commands
2024-01-20 16:14:35 -10:00
..
Accounts.hs imp: acc: reorder/clean up flags 2023-03-30 10:58:46 -10:00
Accounts.md ;doc: use ``cli not ``shell for command-line examples 2023-11-26 08:30:04 -10:00
Accounts.txt ;doc: update CLI usage texts 2023-02-20 16:24:54 -10:00
Activity.hs activity: fix output after #1982; add tests 2023-02-21 07:17:21 -10:00
Activity.md ;doc: use ``cli not ``shell for command-line examples 2023-11-26 08:30:04 -10:00
Activity.txt ;doc: update CLI usage texts 2023-02-20 16:24:54 -10:00
Add.hs fix:add: rethink adding default commodity symbol; fix doc instead [#815] 2024-01-04 17:33:05 -10:00
Add.md fix:add,import,web: really avoid filenames ending with . on Windows [#1056] 2024-01-04 17:35:22 -10:00
Add.txt ;doc: update command help 2024-01-12 13:52:00 -10:00
Aregister.hs feat: cli: Add tsv output (#869) 2023-11-06 16:46:04 -08:00
Aregister.md ;doc: add version annotations for features in 1.32 2024-01-17 00:12:57 -10:00
Aregister.txt ;doc: update command help 2023-11-22 22:57:36 -10:00
Balance.hs fix: bal --budget --layout=tall was hiding commodity symbols 2023-12-08 05:52:29 -10:00
Balance.md ;doc: add version annotations for features in 1.32 2024-01-17 00:12:57 -10:00
Balance.txt ;doc: update command help 2024-01-12 13:52:00 -10:00
Balancesheet.hs fix!: cbr: Remove old account type query code. (#1921) 2022-08-21 08:27:51 +01:00
Balancesheet.md ;doc: add version annotations for features in 1.32 2024-01-17 00:12:57 -10:00
Balancesheet.txt ;doc: update command help 2024-01-12 13:52:00 -10:00
Balancesheetequity.hs fix!: cbr: Remove old account type query code. (#1921) 2022-08-21 08:27:51 +01:00
Balancesheetequity.md ;doc:manuals: remove all "experimental" annotations for now, 2 2024-01-12 13:55:39 -10:00
Balancesheetequity.txt ;doc: update command help 2024-01-12 13:55:49 -10:00
Cashflow.hs fix!: cbr: Remove old account type query code. (#1921) 2022-08-21 08:27:51 +01:00
Cashflow.md ;doc: add version annotations for features in 1.32 2024-01-17 00:12:57 -10:00
Cashflow.txt ;doc: update command help 2024-01-12 13:52:00 -10:00
Check.hs feat:print: add a basic beancount output format 2023-11-22 22:57:36 -10:00
Check.md ;doc: use ``cli not ``shell for command-line examples 2023-11-26 08:30:04 -10:00
Check.txt ;doc: update command help 2023-09-11 09:57:02 +01:00
Close.hs imp:close: exclude E by default; and always exclude the balancing account [#2151] 2024-01-20 15:42:38 -10:00
Close.md ;doc:close: fix link 2024-01-20 16:14:35 -10:00
Close.txt ;doc: update command help 2024-01-12 13:52:00 -10:00
Codes.hs dev: lib, cli, bin: enable/fix name shadowing warnings 2022-08-23 12:16:15 +01:00
Codes.md ;doc: use ``cli not ``shell for command-line examples 2023-11-26 08:30:04 -10:00
Codes.txt ;doc: update CLI usage texts 2023-02-20 16:24:54 -10:00
commands.m4 feat: embed some asciinema demos, and a demo command to play them 2023-03-16 21:58:38 -10:00
Commodities.hs fix!: Revert "fix!: utf-8: Use with-utf8 to ensure all files are read and written with utf8 encoding. (#1619)" 2022-06-01 09:35:18 +10:00
Commodities.md cli: simplify command doc inclusion, give them normal heading structure 2023-02-20 16:24:54 -10:00
Commodities.txt ;doc: update CLI usage texts 2023-02-20 16:24:54 -10:00
Demo.hs imp:demo: improve error message when asciinema fails 2023-10-23 14:21:20 +01:00
Demo.md ;doc: use ``cli not ``shell for command-line examples 2023-11-26 08:30:04 -10:00
Demo.txt ;doc: update command help 2023-06-01 16:34:57 -10:00
Descriptions.hs dev: lib, cli, bin: enable/fix name shadowing warnings 2022-08-23 12:16:15 +01:00
Descriptions.md ;doc: use ``cli not ``shell for command-line examples 2023-11-26 08:30:04 -10:00
Descriptions.txt ;doc: update CLI usage texts 2023-02-20 16:24:54 -10:00
Diff.hs fix!: Revert "fix!: utf-8: Use with-utf8 to ensure all files are read and written with utf8 encoding. (#1619)" 2022-06-01 09:35:18 +10:00
Diff.md ;doc: use ``cli not ``shell for command-line examples 2023-11-26 08:30:04 -10:00
Diff.txt ;doc: update CLI usage texts 2023-02-20 16:24:54 -10:00
Files.hs dev: lib, cli, bin: enable/fix name shadowing warnings 2022-08-23 12:16:15 +01:00
Files.md cli: simplify command doc inclusion, give them normal heading structure 2023-02-20 16:24:54 -10:00
Files.txt ;doc: update CLI usage texts 2023-02-20 16:24:54 -10:00
Help.hs pkg: Drop base-compat-batteries dependency. 2021-10-31 07:56:07 -10:00
Help.md ;doc: use ``cli not ``shell for command-line examples 2023-11-26 08:30:04 -10:00
Help.txt ;doc: update command help 2023-04-07 09:52:31 -10:00
Import.hs fix:import: save each file's latest dates, separately (#2125) 2023-12-07 03:41:31 -10:00
Import.md ;doc: use ``cli not ``shell for command-line examples 2023-11-26 08:30:04 -10:00
Import.txt ;doc: update command help 2023-11-22 22:57:36 -10:00
Incomestatement.hs fix!: cbr: Remove old account type query code. (#1921) 2022-08-21 08:27:51 +01:00
Incomestatement.md ;doc: add version annotations for features in 1.32 2024-01-17 00:12:57 -10:00
Incomestatement.txt ;doc: update command help 2024-01-12 13:52:00 -10:00
Notes.hs dev: lib, cli, bin: enable/fix name shadowing warnings 2022-08-23 12:16:15 +01:00
Notes.md ;doc: use ``cli not ``shell for command-line examples 2023-11-26 08:30:04 -10:00
Notes.txt ;doc: update CLI usage texts 2023-02-20 16:24:54 -10:00
Payees.hs dev: lib, cli, bin: enable/fix name shadowing warnings 2022-08-23 12:16:15 +01:00
Payees.md ;doc: use ``cli not ``shell for command-line examples 2023-11-26 08:30:04 -10:00
Payees.txt ;doc: update CLI usage texts 2023-02-20 16:24:54 -10:00
Prices.hs imp: more precision handling fixes, debug output, test updates (precisiongeddon) 2023-11-08 13:59:18 -08:00
Prices.md imp: prices: clarify, fixes, improve semantics (precisiongeddon) 2023-11-08 13:59:18 -08:00
Prices.txt ;doc: update command help 2023-11-22 22:57:36 -10:00
Print.hs fix:print: pad/round amounts with inferred costs like the others (#2123) 2023-12-07 03:41:31 -10:00
Print.md ;doc: add version annotations for features in 1.32 2024-01-17 00:12:57 -10:00
Print.txt ;doc: update command help 2024-01-12 13:52:00 -10:00
README.md ;shake: commandtxts -> cmdhelp; note todos 2020-12-15 08:53:10 -08:00
Register.hs feat: cli: Add tsv output (#869) 2023-11-06 16:46:04 -08:00
Register.md ;doc: add version annotations for features in 1.32 2024-01-17 00:12:57 -10:00
Register.txt ;doc: update command help 2024-01-12 13:52:00 -10:00
Rewrite.hs cln:print: clarify code a bit, rename originalTransaction 2023-06-14 18:11:28 -10:00
Rewrite.md ;doc: use ``cli not ``shell for command-line examples 2023-11-26 08:30:04 -10:00
Rewrite.txt ;doc: update CLI usage texts 2023-02-20 16:24:54 -10:00
Roi.hs imp: roi: limit large decimals to 8 digits by default (precisiongeddon) 2023-11-08 13:59:18 -08:00
Roi.md ;doc: use ``cli not ``shell for command-line examples 2023-11-26 08:30:04 -10:00
Roi.txt ;doc: update command help 2023-09-11 09:57:02 +01:00
Stats.hs fix: stats: fix a regression in date display since 1.28 (#2012) 2023-03-16 14:52:37 -10:00
Stats.md ;doc: use ``cli not ``shell for command-line examples 2023-11-26 08:30:04 -10:00
Stats.txt ;doc: update CLI usage texts 2023-02-20 16:24:54 -10:00
Tags.hs queries: Prefix boolean queries with expr: 2023-03-27 10:29:26 -10:00
Tags.md cli: simplify command doc inclusion, give them normal heading structure 2023-02-20 16:24:54 -10:00
Tags.txt ;doc: update CLI usage texts 2023-02-20 16:24:54 -10:00
Test.md ;doc: use ``cli not ``shell for command-line examples 2023-11-26 08:30:04 -10:00
Test.txt ;doc: update CLI usage texts 2023-02-20 16:24:54 -10: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 cmdhelp

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