hledger/hledger/Hledger/Cli/Commands
Simon Michael 4ee39e039b doc: integrate CLI help & manual for remaining commands
& rename HelpTemplate -> CommandDoc
2019-01-28 05:43:49 -08:00
..
Accounts.hs acc: integrate CLI help & manual 2019-01-26 17:01:55 -08:00
Accounts.md acc: integrate CLI help & manual 2019-01-26 17:01:55 -08:00
Activity.hs act: integrate CLI help & manual 2019-01-26 17:07:30 -08:00
Activity.md act: integrate CLI help & manual 2019-01-26 17:07:30 -08:00
Add.hs add: integrate CLI help & manual 2019-01-26 17:13:44 -08:00
Add.md add: integrate CLI help & manual 2019-01-26 17:13:44 -08:00
Balance.hs bal: integrate CLI help & manual 2019-01-26 17:22:48 -08:00
Balance.md bal: integrate CLI help & manual 2019-01-26 17:22:48 -08:00
Balancesheet.hs doc: integrate CLI help & manual for remaining commands 2019-01-28 05:43:49 -08:00
Balancesheet.md doc: integrate CLI help & manual for remaining commands 2019-01-28 05:43:49 -08:00
Balancesheetequity.hs doc: integrate CLI help & manual for remaining commands 2019-01-28 05:43:49 -08:00
Balancesheetequity.md doc: integrate CLI help & manual for remaining commands 2019-01-28 05:43:49 -08:00
Cashflow.hs doc: integrate CLI help & manual for remaining commands 2019-01-28 05:43:49 -08:00
Cashflow.md doc: integrate CLI help & manual for remaining commands 2019-01-28 05:43:49 -08:00
Checkdates.hs doc: integrate CLI help & manual for remaining commands 2019-01-28 05:43:49 -08:00
Checkdates.md doc: integrate CLI help & manual for remaining commands 2019-01-28 05:43:49 -08:00
Checkdupes.hs doc: integrate CLI help & manual for remaining commands 2019-01-28 05:43:49 -08:00
Checkdupes.md doc: integrate CLI help & manual for remaining commands 2019-01-28 05:43:49 -08:00
Close.hs lib: refactor, add embedFileRelative 2019-01-26 15:52:58 -08:00
Close.md doc: force a line break after command names in new command docs 2019-01-26 16:33:51 -08:00
Files.hs doc: integrate CLI help & manual for remaining commands 2019-01-28 05:43:49 -08:00
Files.md doc: integrate CLI help & manual for remaining commands 2019-01-28 05:43:49 -08:00
Help.hs doc: integrate CLI help & manual for remaining commands 2019-01-28 05:43:49 -08:00
Help.md doc: integrate CLI help & manual for remaining commands 2019-01-28 05:43:49 -08:00
Import.hs doc: integrate CLI help & manual for remaining commands 2019-01-28 05:43:49 -08:00
Import.md doc: integrate CLI help & manual for remaining commands 2019-01-28 05:43:49 -08:00
Incomestatement.hs doc: integrate CLI help & manual for remaining commands 2019-01-28 05:43:49 -08:00
Incomestatement.md doc: integrate CLI help & manual for remaining commands 2019-01-28 05:43:49 -08:00
Prices.hs doc: integrate CLI help & manual for remaining commands 2019-01-28 05:43:49 -08:00
Prices.md doc: integrate CLI help & manual for remaining commands 2019-01-28 05:43:49 -08:00
Print.hs doc: integrate CLI help & manual for remaining commands 2019-01-28 05:43:49 -08:00
Print.md doc: integrate CLI help & manual for remaining commands 2019-01-28 05:43:49 -08:00
Printunique.hs doc: integrate CLI help & manual for remaining commands 2019-01-28 05:43:49 -08:00
Printunique.md doc: integrate CLI help & manual for remaining commands 2019-01-28 05:43:49 -08:00
README acc: integrate CLI help & manual 2019-01-26 17:01:55 -08:00
Register.hs doc: integrate CLI help & manual for remaining commands 2019-01-28 05:43:49 -08:00
Register.md doc: integrate CLI help & manual for remaining commands 2019-01-28 05:43:49 -08:00
Registermatch.hs doc: integrate CLI help & manual for remaining commands 2019-01-28 05:43:49 -08:00
Registermatch.md doc: integrate CLI help & manual for remaining commands 2019-01-28 05:43:49 -08:00
Rewrite.hs doc: integrate CLI help & manual for remaining commands 2019-01-28 05:43:49 -08:00
Rewrite.md doc: integrate CLI help & manual for remaining commands 2019-01-28 05:43:49 -08:00
Roi.hs doc: integrate CLI help & manual for remaining commands 2019-01-28 05:43:49 -08:00
Roi.md doc: integrate CLI help & manual for remaining commands 2019-01-28 05:43:49 -08:00
Stats.hs doc: integrate CLI help & manual for remaining commands 2019-01-28 05:43:49 -08:00
Stats.md doc: integrate CLI help & manual for remaining commands 2019-01-28 05:43:49 -08:00
Tags.hs doc: integrate CLI help & manual for remaining commands 2019-01-28 05:43:49 -08:00
Tags.md doc: integrate CLI help & manual for remaining commands 2019-01-28 05:43:49 -08:00
Test.md doc: integrate CLI help & manual for remaining commands 2019-01-28 05:43:49 -08:00

hledger's built-in commands.

Each command has a similarly-named module, Somecommand.hs.

Each command's help is kept in Somecommand.md. 
This file is included by Somecommand.hs to help build the command's --help output,
and by hledger/hledger_commands.m4.md to help build the hledger manual.
It has some special features:

- The first line should specify the command name and any aliases,
  as space or comma-separated words, and be terminated by a backslash
  (forcing a line break in the output). The help content should begin on line 2.
  Eg:

      close, equity\
      Prints a "closing balances" transaction...

- A line containing just _FLAGS_ will be replaced in --help output by
  the command's flags list. Lines above _FLAGS_ are known as the short help.
  If there's no such line, the flags will be displayed at the end. 
  In the manual, no flags list is shown.

- Markdown can be used to influence the appearance of the manuals,
  especially the html version. But the markup will also appear
  uninterpreted in the --help output, so use sparingly.
  m4 macros can not be used.

- Use only one newline on the first line (or cmdargs will display the
  short help with two newlines after each line). This also means
  cmdargs will strip out any blank lines, which prevents use of some
  markdown features.

- Keep the width of short help lines to 76 characters or less, or
  cmdargs will insert newlines. (In Emacs: C-u 77 C-x f).

- GHC, stack, cabal, ghcid etc. won't notice changes in this file;
  you have to also touch the .hs file.