;doc: update embedded manuals
This commit is contained in:
parent
b31091195b
commit
dcd5221489
@ -51,15 +51,14 @@ with a date field.
|
|||||||
.PP
|
.PP
|
||||||
hledger\-web can be run in three modes:
|
hledger\-web can be run in three modes:
|
||||||
.IP \[bu] 2
|
.IP \[bu] 2
|
||||||
Transient mode (the default): your default web browser will be opened to
|
\f[CR]\-\-serve\-browse\f[R] mode (the default): the app serves the web
|
||||||
show the app if possible, and the app exits automatically after two
|
UI and JSON API, and opens your default web browser to show the app if
|
||||||
minutes of inactivity (no requests received and no open browser windows
|
possible, and exits automatically after two minutes of inactivity (with
|
||||||
viewing it).
|
no requests received and no open browser windows viewing it).
|
||||||
.IP \[bu] 2
|
.IP \[bu] 2
|
||||||
With \f[CR]\-\-serve\f[R]: the app runs without stopping, and without
|
\f[CR]\-\-serve\f[R]: the app just serves the web UI and JSON API.
|
||||||
opening a browser.
|
|
||||||
.IP \[bu] 2
|
.IP \[bu] 2
|
||||||
With \f[CR]\-\-serve\-api\f[R]: only the JSON API is served.
|
\f[CR]\-\-serve\-api\f[R]: the app just serves the JSON API.
|
||||||
.PP
|
.PP
|
||||||
In all cases hledger\-web runs as a foreground process, logging requests
|
In all cases hledger\-web runs as a foreground process, logging requests
|
||||||
to stdout.
|
to stdout.
|
||||||
|
|||||||
@ -47,15 +47,14 @@ with a date field. (See hledger(1) -> Input for details.)
|
|||||||
|
|
||||||
hledger-web can be run in three modes:
|
hledger-web can be run in three modes:
|
||||||
|
|
||||||
* Transient mode (the default): your default web browser will be
|
* '--serve-browse' mode (the default): the app serves the web UI and
|
||||||
opened to show the app if possible, and the app exits automatically
|
JSON API, and opens your default web browser to show the app if
|
||||||
after two minutes of inactivity (no requests received and no open
|
possible, and exits automatically after two minutes of inactivity
|
||||||
browser windows viewing it).
|
(with no requests received and no open browser windows viewing it).
|
||||||
|
|
||||||
* With '--serve': the app runs without stopping, and without opening
|
* '--serve': the app just serves the web UI and JSON API.
|
||||||
a browser.
|
|
||||||
|
|
||||||
* With '--serve-api': only the JSON API is served.
|
* '--serve-api': the app just serves the JSON API.
|
||||||
|
|
||||||
In all cases hledger-web runs as a foreground process, logging
|
In all cases hledger-web runs as a foreground process, logging
|
||||||
requests to stdout.
|
requests to stdout.
|
||||||
@ -529,15 +528,15 @@ https://bugs.hledger.org), or on the hledger chat or mail list
|
|||||||
|
|
||||||
Tag Table:
|
Tag Table:
|
||||||
Node: Top223
|
Node: Top223
|
||||||
Node: OPTIONS2569
|
Node: OPTIONS2581
|
||||||
Node: PERMISSIONS11258
|
Node: PERMISSIONS11270
|
||||||
Node: EDITING UPLOADING DOWNLOADING12609
|
Node: EDITING UPLOADING DOWNLOADING12621
|
||||||
Node: RELOADING13624
|
Node: RELOADING13636
|
||||||
Node: JSON API14191
|
Node: JSON API14203
|
||||||
Node: DEBUG OUTPUT19840
|
Node: DEBUG OUTPUT19852
|
||||||
Node: Debug output19992
|
Node: Debug output20004
|
||||||
Node: ENVIRONMENT20510
|
Node: ENVIRONMENT20522
|
||||||
Node: BUGS20746
|
Node: BUGS20758
|
||||||
|
|
||||||
End Tag Table
|
End Tag Table
|
||||||
|
|
||||||
|
|||||||
@ -40,15 +40,14 @@ DESCRIPTION
|
|||||||
|
|
||||||
hledger-web can be run in three modes:
|
hledger-web can be run in three modes:
|
||||||
|
|
||||||
o Transient mode (the default): your default web browser will be opened
|
o --serve-browse mode (the default): the app serves the web UI and JSON
|
||||||
to show the app if possible, and the app exits automatically after
|
API, and opens your default web browser to show the app if possible,
|
||||||
two minutes of inactivity (no requests received and no open browser
|
and exits automatically after two minutes of inactivity (with no re-
|
||||||
windows viewing it).
|
quests received and no open browser windows viewing it).
|
||||||
|
|
||||||
o With --serve: the app runs without stopping, and without opening a
|
o --serve: the app just serves the web UI and JSON API.
|
||||||
browser.
|
|
||||||
|
|
||||||
o With --serve-api: only the JSON API is served.
|
o --serve-api: the app just serves the JSON API.
|
||||||
|
|
||||||
In all cases hledger-web runs as a foreground process, logging requests
|
In all cases hledger-web runs as a foreground process, logging requests
|
||||||
to stdout.
|
to stdout.
|
||||||
@ -76,28 +75,28 @@ OPTIONS
|
|||||||
runner args may follow a --, eg: hledger-web --test
|
runner args may follow a --, eg: hledger-web --test
|
||||||
-- --help
|
-- --help
|
||||||
|
|
||||||
By default hledger-web listens only on IP address 127.0.0.1, which be
|
By default hledger-web listens only on IP address 127.0.0.1, which be
|
||||||
accessed only from the local machine.
|
accessed only from the local machine.
|
||||||
|
|
||||||
To allow access from elsewhere, use --host to specify an externally ac-
|
To allow access from elsewhere, use --host to specify an externally ac-
|
||||||
cessible address configured on this machine, The special address
|
cessible address configured on this machine, The special address
|
||||||
0.0.0.0 causes it to listen on all of this machine's addresses.
|
0.0.0.0 causes it to listen on all of this machine's addresses.
|
||||||
|
|
||||||
Similarly, you can use --port to listen on a TCP port other than 5000.
|
Similarly, you can use --port to listen on a TCP port other than 5000.
|
||||||
This is useful if you want to run multiple hledger-web instances on a
|
This is useful if you want to run multiple hledger-web instances on a
|
||||||
machine.
|
machine.
|
||||||
|
|
||||||
When --socket is used, hledger-web creates and communicates via a
|
When --socket is used, hledger-web creates and communicates via a
|
||||||
socket file instead of a TCP port. This can be more secure, respects
|
socket file instead of a TCP port. This can be more secure, respects
|
||||||
unix file permissions, and makes certain use cases easier, such as run-
|
unix file permissions, and makes certain use cases easier, such as run-
|
||||||
ning per-user instances behind an nginx reverse proxy. (Eg: proxy_pass
|
ning per-user instances behind an nginx reverse proxy. (Eg: proxy_pass
|
||||||
http://unix:/tmp/hledger/${remote_user}.socket;.)
|
http://unix:/tmp/hledger/${remote_user}.socket;.)
|
||||||
|
|
||||||
You can use --base-url to change the protocol, hostname, port and path
|
You can use --base-url to change the protocol, hostname, port and path
|
||||||
that appear in hledger-web's hyperlinks. This is useful eg when inte-
|
that appear in hledger-web's hyperlinks. This is useful eg when inte-
|
||||||
grating hledger-web within a larger website. The default is
|
grating hledger-web within a larger website. The default is
|
||||||
http://HOST:PORT/ using the server's configured host address and TCP
|
http://HOST:PORT/ using the server's configured host address and TCP
|
||||||
port (or http://HOST if PORT is 80). Note this affects url generation
|
port (or http://HOST if PORT is 80). Note this affects url generation
|
||||||
but not route parsing.
|
but not route parsing.
|
||||||
|
|
||||||
hledger-web also supports many of hledger's general options:
|
hledger-web also supports many of hledger's general options:
|
||||||
@ -183,29 +182,29 @@ OPTIONS
|
|||||||
--pager=YN use a pager when needed ? y/yes (default) or n/no
|
--pager=YN use a pager when needed ? y/yes (default) or n/no
|
||||||
--color=YNA --colour use ANSI color ? y/yes, n/no, or auto (default)
|
--color=YNA --colour use ANSI color ? y/yes, n/no, or auto (default)
|
||||||
|
|
||||||
hledger-web shows accounts with zero balances by default (like
|
hledger-web shows accounts with zero balances by default (like
|
||||||
hledger-ui, and unlike hledger). Using the -E/--empty flag will re-
|
hledger-ui, and unlike hledger). Using the -E/--empty flag will re-
|
||||||
verse this behaviour. If you see accounts which appear to have a zero
|
verse this behaviour. If you see accounts which appear to have a zero
|
||||||
balance, but cannot be hidden with -E, it's because they have a
|
balance, but cannot be hidden with -E, it's because they have a
|
||||||
mixed-cost balance, which looks like zero when costs are hidden.
|
mixed-cost balance, which looks like zero when costs are hidden.
|
||||||
(hledger-web does not show costs.)
|
(hledger-web does not show costs.)
|
||||||
|
|
||||||
Reporting options and/or query arguments can be used to set an initial
|
Reporting options and/or query arguments can be used to set an initial
|
||||||
query, which although not shown in the UI, will restrict the data shown
|
query, which although not shown in the UI, will restrict the data shown
|
||||||
(in addition to any search query entered in the UI).
|
(in addition to any search query entered in the UI).
|
||||||
|
|
||||||
If you use the bash shell, you can auto-complete flags by pressing TAB
|
If you use the bash shell, you can auto-complete flags by pressing TAB
|
||||||
in the command line. If this is not working see Install > Shell com-
|
in the command line. If this is not working see Install > Shell com-
|
||||||
pletions.
|
pletions.
|
||||||
|
|
||||||
PERMISSIONS
|
PERMISSIONS
|
||||||
By default, hledger-web allows anyone who can reach it to view the
|
By default, hledger-web allows anyone who can reach it to view the
|
||||||
journal and to add new transactions, but not to change existing data.
|
journal and to add new transactions, but not to change existing data.
|
||||||
|
|
||||||
You can restrict who can reach it by
|
You can restrict who can reach it by
|
||||||
|
|
||||||
o setting the IP address it listens on (see --host above). By default
|
o setting the IP address it listens on (see --host above). By default
|
||||||
it listens on 127.0.0.1, accessible to all users on the local ma-
|
it listens on 127.0.0.1, accessible to all users on the local ma-
|
||||||
chine.
|
chine.
|
||||||
|
|
||||||
o putting it behind an authenticating proxy, using eg apache or nginx
|
o putting it behind an authenticating proxy, using eg apache or nginx
|
||||||
@ -215,44 +214,44 @@ PERMISSIONS
|
|||||||
You can restrict what the users who reach it can do, by
|
You can restrict what the users who reach it can do, by
|
||||||
|
|
||||||
o using the --capabilities=CAP[,CAP..] flag when you start it, enabling
|
o using the --capabilities=CAP[,CAP..] flag when you start it, enabling
|
||||||
one or more of the following capabilities. The default value is
|
one or more of the following capabilities. The default value is
|
||||||
view,add:
|
view,add:
|
||||||
|
|
||||||
o view - allows viewing the journal file and all included files
|
o view - allows viewing the journal file and all included files
|
||||||
|
|
||||||
o add - allows adding new transactions to the main journal file
|
o add - allows adding new transactions to the main journal file
|
||||||
|
|
||||||
o manage - allows editing, uploading or downloading the main or in-
|
o manage - allows editing, uploading or downloading the main or in-
|
||||||
cluded files
|
cluded files
|
||||||
|
|
||||||
o using the --capabilities-header=HTTPHEADER flag to specify a HTTP
|
o using the --capabilities-header=HTTPHEADER flag to specify a HTTP
|
||||||
header from which it will read capabilities to enable. hledger-web
|
header from which it will read capabilities to enable. hledger-web
|
||||||
on Sandstorm uses the X-Sandstorm-Permissions header to integrate
|
on Sandstorm uses the X-Sandstorm-Permissions header to integrate
|
||||||
with Sandstorm's permissions. This is disabled by default.
|
with Sandstorm's permissions. This is disabled by default.
|
||||||
|
|
||||||
EDITING, UPLOADING, DOWNLOADING
|
EDITING, UPLOADING, DOWNLOADING
|
||||||
If you enable the manage capability mentioned above, you'll see a new
|
If you enable the manage capability mentioned above, you'll see a new
|
||||||
"spanner" button to the right of the search form. Clicking this will
|
"spanner" button to the right of the search form. Clicking this will
|
||||||
let you edit, upload, or download the journal file or any files it in-
|
let you edit, upload, or download the journal file or any files it in-
|
||||||
cludes.
|
cludes.
|
||||||
|
|
||||||
Note, unlike any other hledger command, in this mode you (or any visi-
|
Note, unlike any other hledger command, in this mode you (or any visi-
|
||||||
tor) can alter or wipe the data files.
|
tor) can alter or wipe the data files.
|
||||||
|
|
||||||
Normally whenever a file is changed in this way, hledger-web saves a
|
Normally whenever a file is changed in this way, hledger-web saves a
|
||||||
numbered backup (assuming file permissions allow it, the disk is not
|
numbered backup (assuming file permissions allow it, the disk is not
|
||||||
full, etc.) hledger-web is not aware of version control systems, cur-
|
full, etc.) hledger-web is not aware of version control systems, cur-
|
||||||
rently; if you use one, you'll have to arrange to commit the changes
|
rently; if you use one, you'll have to arrange to commit the changes
|
||||||
yourself (eg with a cron job or a file watcher like entr).
|
yourself (eg with a cron job or a file watcher like entr).
|
||||||
|
|
||||||
Changes which would leave the journal file(s) unparseable or non-valid
|
Changes which would leave the journal file(s) unparseable or non-valid
|
||||||
(eg with failing balance assertions) are prevented. (Probably. This
|
(eg with failing balance assertions) are prevented. (Probably. This
|
||||||
needs re-testing.)
|
needs re-testing.)
|
||||||
|
|
||||||
RELOADING
|
RELOADING
|
||||||
hledger-web detects changes made to the files by other means (eg if you
|
hledger-web detects changes made to the files by other means (eg if you
|
||||||
edit it directly, outside of hledger-web), and it will show the new
|
edit it directly, outside of hledger-web), and it will show the new
|
||||||
data when you reload the page or navigate to a new page. If a change
|
data when you reload the page or navigate to a new page. If a change
|
||||||
makes a file unparseable, hledger-web will display an error message un-
|
makes a file unparseable, hledger-web will display an error message un-
|
||||||
til the file has been fixed.
|
til the file has been fixed.
|
||||||
|
|
||||||
@ -260,8 +259,8 @@ RELOADING
|
|||||||
that both machine clocks are roughly in step.)
|
that both machine clocks are roughly in step.)
|
||||||
|
|
||||||
JSON API
|
JSON API
|
||||||
In addition to the web UI, hledger-web also serves a JSON API that can
|
In addition to the web UI, hledger-web also serves a JSON API that can
|
||||||
be used to get data or add new transactions. If you want the JSON API
|
be used to get data or add new transactions. If you want the JSON API
|
||||||
only, you can use the --serve-api flag. Eg:
|
only, you can use the --serve-api flag. Eg:
|
||||||
|
|
||||||
$ hledger-web -f examples/sample.journal --serve-api
|
$ hledger-web -f examples/sample.journal --serve-api
|
||||||
@ -278,7 +277,7 @@ JSON API
|
|||||||
/accounttransactions/ACCOUNTNAME
|
/accounttransactions/ACCOUNTNAME
|
||||||
|
|
||||||
Eg, all account names in the journal (similar to the accounts command).
|
Eg, all account names in the journal (similar to the accounts command).
|
||||||
(hledger-web's JSON does not include newlines, here we use python to
|
(hledger-web's JSON does not include newlines, here we use python to
|
||||||
prettify it):
|
prettify it):
|
||||||
|
|
||||||
$ curl -s http://127.0.0.1:5000/accountnames | python -m json.tool
|
$ curl -s http://127.0.0.1:5000/accountnames | python -m json.tool
|
||||||
@ -319,26 +318,26 @@ JSON API
|
|||||||
"aprice": null,
|
"aprice": null,
|
||||||
...
|
...
|
||||||
|
|
||||||
Most of the JSON corresponds to hledger's data types; for details of
|
Most of the JSON corresponds to hledger's data types; for details of
|
||||||
what the fields mean, see the Hledger.Data.Json haddock docs and click
|
what the fields mean, see the Hledger.Data.Json haddock docs and click
|
||||||
on the various data types, eg Transaction. And for a higher level un-
|
on the various data types, eg Transaction. And for a higher level un-
|
||||||
derstanding, see the journal docs. There is also a basic OpenAPI spec-
|
derstanding, see the journal docs. There is also a basic OpenAPI spec-
|
||||||
ification.
|
ification.
|
||||||
|
|
||||||
In some cases there is outer JSON corresponding to a "Report" type. To
|
In some cases there is outer JSON corresponding to a "Report" type. To
|
||||||
understand that, go to the Hledger.Web.Handler.MiscR haddock and look
|
understand that, go to the Hledger.Web.Handler.MiscR haddock and look
|
||||||
at the source for the appropriate handler to see what it returns. Eg
|
at the source for the appropriate handler to see what it returns. Eg
|
||||||
for /accounttransactions it's getAccounttransactionsR, returning a "ac-
|
for /accounttransactions it's getAccounttransactionsR, returning a "ac-
|
||||||
countTransactionsReport ...". Looking up the haddock for that we can
|
countTransactionsReport ...". Looking up the haddock for that we can
|
||||||
see that /accounttransactions returns an AccountTransactionsReport,
|
see that /accounttransactions returns an AccountTransactionsReport,
|
||||||
which consists of a report title and a list of AccountTransactionsRe-
|
which consists of a report title and a list of AccountTransactionsRe-
|
||||||
portItem (etc).
|
portItem (etc).
|
||||||
|
|
||||||
You can add a new transaction to the journal with a PUT request to
|
You can add a new transaction to the journal with a PUT request to
|
||||||
/add, if hledger-web was started with the add capability (enabled by
|
/add, if hledger-web was started with the add capability (enabled by
|
||||||
default). The payload must be the full, exact JSON representation of a
|
default). The payload must be the full, exact JSON representation of a
|
||||||
hledger transaction (partial data won't do). You can get sample JSON
|
hledger transaction (partial data won't do). You can get sample JSON
|
||||||
from hledger-web's /transactions or /accounttransactions, or you can
|
from hledger-web's /transactions or /accounttransactions, or you can
|
||||||
export it with hledger-lib, eg like so:
|
export it with hledger-lib, eg like so:
|
||||||
|
|
||||||
.../hledger$ stack ghci hledger-lib
|
.../hledger$ stack ghci hledger-lib
|
||||||
@ -434,28 +433,28 @@ JSON API
|
|||||||
"tstatus": "Unmarked"
|
"tstatus": "Unmarked"
|
||||||
}
|
}
|
||||||
|
|
||||||
And here's how to test adding it with curl. This should add a new en-
|
And here's how to test adding it with curl. This should add a new en-
|
||||||
try to your journal:
|
try to your journal:
|
||||||
|
|
||||||
$ curl http://127.0.0.1:5000/add -X PUT -H 'Content-Type: application/json' --data-binary @txn.json
|
$ curl http://127.0.0.1:5000/add -X PUT -H 'Content-Type: application/json' --data-binary @txn.json
|
||||||
|
|
||||||
DEBUG OUTPUT
|
DEBUG OUTPUT
|
||||||
Debug output
|
Debug output
|
||||||
You can add --debug[=N] to the command line to log debug output. N
|
You can add --debug[=N] to the command line to log debug output. N
|
||||||
ranges from 1 (least output, the default) to 9 (maximum output). Typi-
|
ranges from 1 (least output, the default) to 9 (maximum output). Typi-
|
||||||
cally you would start with 1 and increase until you are seeing enough.
|
cally you would start with 1 and increase until you are seeing enough.
|
||||||
Debug output goes to stderr, interleaved with the requests logged on
|
Debug output goes to stderr, interleaved with the requests logged on
|
||||||
stdout. To capture debug output in a log file instead, you can usually
|
stdout. To capture debug output in a log file instead, you can usually
|
||||||
redirect stderr, eg:
|
redirect stderr, eg:
|
||||||
hledger-web --debug=3 2>hledger-web.log.
|
hledger-web --debug=3 2>hledger-web.log.
|
||||||
|
|
||||||
ENVIRONMENT
|
ENVIRONMENT
|
||||||
LEDGER_FILE The main journal file to use when not specified with
|
LEDGER_FILE The main journal file to use when not specified with
|
||||||
-f/--file. Default: $HOME/.hledger.journal.
|
-f/--file. Default: $HOME/.hledger.journal.
|
||||||
|
|
||||||
BUGS
|
BUGS
|
||||||
We welcome bug reports in the hledger issue tracker (shortcut:
|
We welcome bug reports in the hledger issue tracker (shortcut:
|
||||||
https://bugs.hledger.org), or on the hledger chat or mail list
|
https://bugs.hledger.org), or on the hledger chat or mail list
|
||||||
(https://hledger.org/support).
|
(https://hledger.org/support).
|
||||||
|
|
||||||
Some known issues:
|
Some known issues:
|
||||||
|
|||||||
@ -447,8 +447,12 @@ Usually hledger accepts any unambiguous flag prefix, eg you can write
|
|||||||
\f[CR]\-\-tl\f[R] instead of \f[CR]\-\-tldr\f[R] or \f[CR]\-\-dry\f[R]
|
\f[CR]\-\-tl\f[R] instead of \f[CR]\-\-tldr\f[R] or \f[CR]\-\-dry\f[R]
|
||||||
instead of \f[CR]\-\-dry\-run\f[R].
|
instead of \f[CR]\-\-dry\-run\f[R].
|
||||||
.PP
|
.PP
|
||||||
If the same option appears more than once in a command, usually the last
|
If the same option appears more than once in a command line, usually the
|
||||||
(right\-most) wins.
|
last (right\-most) wins.
|
||||||
|
Similarly, if mutually exclusive flags are used together, the
|
||||||
|
right\-most wins.
|
||||||
|
(When flags are mutually exclusive, they\[aq]ll usually have a group
|
||||||
|
prefix in \-\-help.)
|
||||||
.PP
|
.PP
|
||||||
With most commands, arguments are interpreted as a hledger query which
|
With most commands, arguments are interpreted as a hledger query which
|
||||||
filter the data.
|
filter the data.
|
||||||
@ -8975,8 +8979,9 @@ Flags:
|
|||||||
\-\-find find the first account matched by the first
|
\-\-find find the first account matched by the first
|
||||||
argument (a case\-insensitive infix regexp or
|
argument (a case\-insensitive infix regexp or
|
||||||
account name)
|
account name)
|
||||||
\-l \-\-flat show accounts as a flat list (default)
|
\-l \-\-flat list/tree mode: show accounts as a flat list
|
||||||
\-t \-\-tree show accounts as a tree
|
(default)
|
||||||
|
\-t \-\-tree list/tree mode: show accounts as a tree
|
||||||
\-\-drop=N flat mode: omit N leading account name parts
|
\-\-drop=N flat mode: omit N leading account name parts
|
||||||
.EE
|
.EE
|
||||||
.PP
|
.PP
|
||||||
@ -9525,9 +9530,11 @@ Flags:
|
|||||||
date. Warning: this can show a wrong running
|
date. Warning: this can show a wrong running
|
||||||
balance.
|
balance.
|
||||||
\-\-no\-elide don\[aq]t show only 2 commodities per amount
|
\-\-no\-elide don\[aq]t show only 2 commodities per amount
|
||||||
\-\-cumulative show running total from report start date
|
\-\-cumulative accumulation mode: show running total from report
|
||||||
\-H \-\-historical show historical running total/balance (includes
|
start date
|
||||||
postings before report start date) (default)
|
\-H \-\-historical accumulation mode: show historical running
|
||||||
|
total/balance (includes postings before report
|
||||||
|
start date) (default)
|
||||||
\-\-invert display all amounts with reversed sign
|
\-\-invert display all amounts with reversed sign
|
||||||
\-\-heading=YN show heading row above table: yes (default) or no
|
\-\-heading=YN show heading row above table: yes (default) or no
|
||||||
\-w \-\-width=N set output width (default: terminal width). \-wN,M
|
\-w \-\-width=N set output width (default: terminal width). \-wN,M
|
||||||
@ -9638,10 +9645,11 @@ Show postings and their running total.
|
|||||||
.IP
|
.IP
|
||||||
.EX
|
.EX
|
||||||
Flags:
|
Flags:
|
||||||
\-\-cumulative show running total from report start date
|
\-\-cumulative accumulation mode: show running total from report
|
||||||
(default)
|
start date (default)
|
||||||
\-H \-\-historical show historical running total/balance (includes
|
\-H \-\-historical accumulation mode: show historical running
|
||||||
postings before report start date)
|
total/balance (includes postings before report
|
||||||
|
start date)
|
||||||
\-A \-\-average show running average of posting amounts instead
|
\-A \-\-average show running average of posting amounts instead
|
||||||
of total (implies \-\-empty)
|
of total (implies \-\-empty)
|
||||||
\-m \-\-match=DESC fuzzy search for one recent posting with
|
\-m \-\-match=DESC fuzzy search for one recent posting with
|
||||||
@ -9826,26 +9834,28 @@ financial statements.
|
|||||||
.IP
|
.IP
|
||||||
.EX
|
.EX
|
||||||
Flags:
|
Flags:
|
||||||
\-\-sum show sum of posting amounts (default)
|
\-\-sum calculation mode: show sum of posting amounts
|
||||||
\-\-valuechange show total change of period\-end historical
|
|
||||||
balance value (caused by deposits, withdrawals,
|
|
||||||
market price fluctuations)
|
|
||||||
\-\-gain show unrealised capital gain/loss (historical
|
|
||||||
balance value minus cost basis)
|
|
||||||
\-\-count show the count of postings
|
|
||||||
\-\-change accumulate amounts from column start to column
|
|
||||||
end (in multicolumn reports)
|
|
||||||
\-\-cumulative accumulate amounts from report start (specified
|
|
||||||
by e.g. \-b/\-\-begin) to column end
|
|
||||||
\-H \-\-historical accumulate amounts from journal start to column
|
|
||||||
end (includes postings before report start date)
|
|
||||||
(default)
|
(default)
|
||||||
\-l \-\-flat show accounts as a flat list (default). Amounts
|
\-\-valuechange calculation mode: show total change of value of
|
||||||
exclude subaccount amounts, except where the
|
period\-end historical balances (caused by deposits,
|
||||||
account is depth\-clipped.
|
withdrawals, market price fluctuations)
|
||||||
\-t \-\-tree show accounts as a tree. Amounts include
|
\-\-gain calculation mode: show unrealised capital
|
||||||
subaccount amounts.
|
gain/loss (historical balance value minus cost
|
||||||
\-\-drop=N flat mode: omit N leading account name parts
|
basis)
|
||||||
|
\-\-count calculation mode: show the count of postings
|
||||||
|
\-\-change accumulation mode: accumulate amounts from column
|
||||||
|
start to column end (in multicolumn reports)
|
||||||
|
\-\-cumulative accumulation mode: accumulate amounts from report
|
||||||
|
start (specified by e.g. \-b/\-\-begin) to column end
|
||||||
|
\-H \-\-historical accumulation mode: accumulate amounts from
|
||||||
|
journal start to column end (includes postings
|
||||||
|
before report start date) (default)
|
||||||
|
\-l \-\-flat list/tree mode: show accounts as a flat list
|
||||||
|
(default). Amounts exclude subaccount amounts,
|
||||||
|
except where the account is depth\-clipped.
|
||||||
|
\-t \-\-tree list/tree mode: show accounts as a tree. Amounts
|
||||||
|
include subaccount amounts.
|
||||||
|
\-\-drop=N in list mode, omit N leading account name parts
|
||||||
\-\-declared include non\-parent declared accounts (best used
|
\-\-declared include non\-parent declared accounts (best used
|
||||||
with \-E)
|
with \-E)
|
||||||
\-A \-\-average show a row average column (in multicolumn
|
\-A \-\-average show a row average column (in multicolumn
|
||||||
@ -9854,8 +9864,7 @@ Flags:
|
|||||||
\-\-summary\-only display only row summaries (e.g. row total,
|
\-\-summary\-only display only row summaries (e.g. row total,
|
||||||
average) (in multicolumn reports)
|
average) (in multicolumn reports)
|
||||||
\-N \-\-no\-total omit the final total row
|
\-N \-\-no\-total omit the final total row
|
||||||
\-\-no\-elide don\[aq]t squash boring parent accounts (in tree
|
\-\-no\-elide in tree mode, don\[aq]t squash boring parent accounts
|
||||||
mode)
|
|
||||||
\-\-format=FORMATSTR use this custom line format (in simple reports)
|
\-\-format=FORMATSTR use this custom line format (in simple reports)
|
||||||
\-S \-\-sort\-amount sort by amount instead of account code/name
|
\-S \-\-sort\-amount sort by amount instead of account code/name
|
||||||
\-% \-\-percent express values in percentage of each column\[aq]s
|
\-% \-\-percent express values in percentage of each column\[aq]s
|
||||||
@ -9928,26 +9937,28 @@ financial statements.
|
|||||||
.IP
|
.IP
|
||||||
.EX
|
.EX
|
||||||
Flags:
|
Flags:
|
||||||
\-\-sum show sum of posting amounts (default)
|
\-\-sum calculation mode: show sum of posting amounts
|
||||||
\-\-valuechange show total change of period\-end historical
|
|
||||||
balance value (caused by deposits, withdrawals,
|
|
||||||
market price fluctuations)
|
|
||||||
\-\-gain show unrealised capital gain/loss (historical
|
|
||||||
balance value minus cost basis)
|
|
||||||
\-\-count show the count of postings
|
|
||||||
\-\-change accumulate amounts from column start to column
|
|
||||||
end (in multicolumn reports)
|
|
||||||
\-\-cumulative accumulate amounts from report start (specified
|
|
||||||
by e.g. \-b/\-\-begin) to column end
|
|
||||||
\-H \-\-historical accumulate amounts from journal start to column
|
|
||||||
end (includes postings before report start date)
|
|
||||||
(default)
|
(default)
|
||||||
\-l \-\-flat show accounts as a flat list (default). Amounts
|
\-\-valuechange calculation mode: show total change of value of
|
||||||
exclude subaccount amounts, except where the
|
period\-end historical balances (caused by deposits,
|
||||||
account is depth\-clipped.
|
withdrawals, market price fluctuations)
|
||||||
\-t \-\-tree show accounts as a tree. Amounts include
|
\-\-gain calculation mode: show unrealised capital
|
||||||
subaccount amounts.
|
gain/loss (historical balance value minus cost
|
||||||
\-\-drop=N flat mode: omit N leading account name parts
|
basis)
|
||||||
|
\-\-count calculation mode: show the count of postings
|
||||||
|
\-\-change accumulation mode: accumulate amounts from column
|
||||||
|
start to column end (in multicolumn reports)
|
||||||
|
\-\-cumulative accumulation mode: accumulate amounts from report
|
||||||
|
start (specified by e.g. \-b/\-\-begin) to column end
|
||||||
|
\-H \-\-historical accumulation mode: accumulate amounts from
|
||||||
|
journal start to column end (includes postings
|
||||||
|
before report start date) (default)
|
||||||
|
\-l \-\-flat list/tree mode: show accounts as a flat list
|
||||||
|
(default). Amounts exclude subaccount amounts,
|
||||||
|
except where the account is depth\-clipped.
|
||||||
|
\-t \-\-tree list/tree mode: show accounts as a tree. Amounts
|
||||||
|
include subaccount amounts.
|
||||||
|
\-\-drop=N in list mode, omit N leading account name parts
|
||||||
\-\-declared include non\-parent declared accounts (best used
|
\-\-declared include non\-parent declared accounts (best used
|
||||||
with \-E)
|
with \-E)
|
||||||
\-A \-\-average show a row average column (in multicolumn
|
\-A \-\-average show a row average column (in multicolumn
|
||||||
@ -9956,8 +9967,7 @@ Flags:
|
|||||||
\-\-summary\-only display only row summaries (e.g. row total,
|
\-\-summary\-only display only row summaries (e.g. row total,
|
||||||
average) (in multicolumn reports)
|
average) (in multicolumn reports)
|
||||||
\-N \-\-no\-total omit the final total row
|
\-N \-\-no\-total omit the final total row
|
||||||
\-\-no\-elide don\[aq]t squash boring parent accounts (in tree
|
\-\-no\-elide in tree mode, don\[aq]t squash boring parent accounts
|
||||||
mode)
|
|
||||||
\-\-format=FORMATSTR use this custom line format (in simple reports)
|
\-\-format=FORMATSTR use this custom line format (in simple reports)
|
||||||
\-S \-\-sort\-amount sort by amount instead of account code/name
|
\-S \-\-sort\-amount sort by amount instead of account code/name
|
||||||
\-% \-\-percent express values in percentage of each column\[aq]s
|
\-% \-\-percent express values in percentage of each column\[aq]s
|
||||||
@ -10038,25 +10048,29 @@ financial statements.
|
|||||||
.IP
|
.IP
|
||||||
.EX
|
.EX
|
||||||
Flags:
|
Flags:
|
||||||
\-\-sum show sum of posting amounts (default)
|
\-\-sum calculation mode: show sum of posting amounts
|
||||||
\-\-valuechange show total change of period\-end historical
|
(default)
|
||||||
balance value (caused by deposits, withdrawals,
|
\-\-valuechange calculation mode: show total change of value of
|
||||||
market price fluctuations)
|
period\-end historical balances (caused by deposits,
|
||||||
\-\-gain show unrealised capital gain/loss (historical
|
withdrawals, market price fluctuations)
|
||||||
balance value minus cost basis)
|
\-\-gain calculation mode: show unrealised capital
|
||||||
\-\-count show the count of postings
|
gain/loss (historical balance value minus cost
|
||||||
\-\-change accumulate amounts from column start to column
|
basis)
|
||||||
end (in multicolumn reports) (default)
|
\-\-count calculation mode: show the count of postings
|
||||||
\-\-cumulative accumulate amounts from report start (specified
|
\-\-change accumulation mode: accumulate amounts from column
|
||||||
by e.g. \-b/\-\-begin) to column end
|
start to column end (in multicolumn reports)
|
||||||
\-H \-\-historical accumulate amounts from journal start to column
|
(default)
|
||||||
end (includes postings before report start date)
|
\-\-cumulative accumulation mode: accumulate amounts from report
|
||||||
\-l \-\-flat show accounts as a flat list (default). Amounts
|
start (specified by e.g. \-b/\-\-begin) to column end
|
||||||
exclude subaccount amounts, except where the
|
\-H \-\-historical accumulation mode: accumulate amounts from
|
||||||
account is depth\-clipped.
|
journal start to column end (includes postings
|
||||||
\-t \-\-tree show accounts as a tree. Amounts include
|
before report start date)
|
||||||
subaccount amounts.
|
\-l \-\-flat list/tree mode: show accounts as a flat list
|
||||||
\-\-drop=N flat mode: omit N leading account name parts
|
(default). Amounts exclude subaccount amounts,
|
||||||
|
except where the account is depth\-clipped.
|
||||||
|
\-t \-\-tree list/tree mode: show accounts as a tree. Amounts
|
||||||
|
include subaccount amounts.
|
||||||
|
\-\-drop=N in list mode, omit N leading account name parts
|
||||||
\-\-declared include non\-parent declared accounts (best used
|
\-\-declared include non\-parent declared accounts (best used
|
||||||
with \-E)
|
with \-E)
|
||||||
\-A \-\-average show a row average column (in multicolumn
|
\-A \-\-average show a row average column (in multicolumn
|
||||||
@ -10065,8 +10079,7 @@ Flags:
|
|||||||
\-\-summary\-only display only row summaries (e.g. row total,
|
\-\-summary\-only display only row summaries (e.g. row total,
|
||||||
average) (in multicolumn reports)
|
average) (in multicolumn reports)
|
||||||
\-N \-\-no\-total omit the final total row
|
\-N \-\-no\-total omit the final total row
|
||||||
\-\-no\-elide don\[aq]t squash boring parent accounts (in tree
|
\-\-no\-elide in tree mode, don\[aq]t squash boring parent accounts
|
||||||
mode)
|
|
||||||
\-\-format=FORMATSTR use this custom line format (in simple reports)
|
\-\-format=FORMATSTR use this custom line format (in simple reports)
|
||||||
\-S \-\-sort\-amount sort by amount instead of account code/name
|
\-S \-\-sort\-amount sort by amount instead of account code/name
|
||||||
\-% \-\-percent express values in percentage of each column\[aq]s
|
\-% \-\-percent express values in percentage of each column\[aq]s
|
||||||
@ -10137,25 +10150,29 @@ financial statements.
|
|||||||
.IP
|
.IP
|
||||||
.EX
|
.EX
|
||||||
Flags:
|
Flags:
|
||||||
\-\-sum show sum of posting amounts (default)
|
\-\-sum calculation mode: show sum of posting amounts
|
||||||
\-\-valuechange show total change of period\-end historical
|
(default)
|
||||||
balance value (caused by deposits, withdrawals,
|
\-\-valuechange calculation mode: show total change of value of
|
||||||
market price fluctuations)
|
period\-end historical balances (caused by deposits,
|
||||||
\-\-gain show unrealised capital gain/loss (historical
|
withdrawals, market price fluctuations)
|
||||||
balance value minus cost basis)
|
\-\-gain calculation mode: show unrealised capital
|
||||||
\-\-count show the count of postings
|
gain/loss (historical balance value minus cost
|
||||||
\-\-change accumulate amounts from column start to column
|
basis)
|
||||||
end (in multicolumn reports) (default)
|
\-\-count calculation mode: show the count of postings
|
||||||
\-\-cumulative accumulate amounts from report start (specified
|
\-\-change accumulation mode: accumulate amounts from column
|
||||||
by e.g. \-b/\-\-begin) to column end
|
start to column end (in multicolumn reports)
|
||||||
\-H \-\-historical accumulate amounts from journal start to column
|
(default)
|
||||||
end (includes postings before report start date)
|
\-\-cumulative accumulation mode: accumulate amounts from report
|
||||||
\-l \-\-flat show accounts as a flat list (default). Amounts
|
start (specified by e.g. \-b/\-\-begin) to column end
|
||||||
exclude subaccount amounts, except where the
|
\-H \-\-historical accumulation mode: accumulate amounts from
|
||||||
account is depth\-clipped.
|
journal start to column end (includes postings
|
||||||
\-t \-\-tree show accounts as a tree. Amounts include
|
before report start date)
|
||||||
subaccount amounts.
|
\-l \-\-flat list/tree mode: show accounts as a flat list
|
||||||
\-\-drop=N flat mode: omit N leading account name parts
|
(default). Amounts exclude subaccount amounts,
|
||||||
|
except where the account is depth\-clipped.
|
||||||
|
\-t \-\-tree list/tree mode: show accounts as a tree. Amounts
|
||||||
|
include subaccount amounts.
|
||||||
|
\-\-drop=N in list mode, omit N leading account name parts
|
||||||
\-\-declared include non\-parent declared accounts (best used
|
\-\-declared include non\-parent declared accounts (best used
|
||||||
with \-E)
|
with \-E)
|
||||||
\-A \-\-average show a row average column (in multicolumn
|
\-A \-\-average show a row average column (in multicolumn
|
||||||
@ -10164,8 +10181,7 @@ Flags:
|
|||||||
\-\-summary\-only display only row summaries (e.g. row total,
|
\-\-summary\-only display only row summaries (e.g. row total,
|
||||||
average) (in multicolumn reports)
|
average) (in multicolumn reports)
|
||||||
\-N \-\-no\-total omit the final total row
|
\-N \-\-no\-total omit the final total row
|
||||||
\-\-no\-elide don\[aq]t squash boring parent accounts (in tree
|
\-\-no\-elide in tree mode, don\[aq]t squash boring parent accounts
|
||||||
mode)
|
|
||||||
\-\-format=FORMATSTR use this custom line format (in simple reports)
|
\-\-format=FORMATSTR use this custom line format (in simple reports)
|
||||||
\-S \-\-sort\-amount sort by amount instead of account code/name
|
\-S \-\-sort\-amount sort by amount instead of account code/name
|
||||||
\-% \-\-percent express values in percentage of each column\[aq]s
|
\-% \-\-percent express values in percentage of each column\[aq]s
|
||||||
@ -10240,32 +10256,36 @@ performance, unrealised capital gains, etc.
|
|||||||
.IP
|
.IP
|
||||||
.EX
|
.EX
|
||||||
Flags:
|
Flags:
|
||||||
\-\-sum show sum of posting amounts (default)
|
\-\-sum calculation mode: show sum of posting amounts
|
||||||
\-\-valuechange show total change of value of period\-end
|
(default)
|
||||||
historical balances (caused by deposits,
|
\-\-valuechange calculation mode: show total change of value of
|
||||||
|
period\-end historical balances (caused by deposits,
|
||||||
withdrawals, market price fluctuations)
|
withdrawals, market price fluctuations)
|
||||||
\-\-gain show unrealised capital gain/loss (historical
|
\-\-gain calculation mode: show unrealised capital
|
||||||
balance value minus cost basis)
|
gain/loss (historical balance value minus cost
|
||||||
\-\-budget[=DESCPAT] show sum of posting amounts together with budget
|
basis)
|
||||||
goals defined by periodic
|
\-\-budget[=DESCPAT] calculation mode: show sum of posting amounts
|
||||||
|
together with budget goals defined by periodic
|
||||||
transactions. With a DESCPAT argument (must be
|
transactions. With a DESCPAT argument (must be
|
||||||
separated by = not space),
|
separated by = not space),
|
||||||
use only periodic transactions with matching
|
use only periodic transactions with matching
|
||||||
description
|
description
|
||||||
(case insensitive substring match).
|
(case insensitive substring match).
|
||||||
\-\-count show the count of postings
|
\-\-count calculation mode: show the count of postings
|
||||||
\-\-change accumulate amounts from column start to column
|
\-\-change accumulation mode: accumulate amounts from column
|
||||||
end (in multicolumn reports, default)
|
start to column end (in multicolumn reports,
|
||||||
\-\-cumulative accumulate amounts from report start (specified
|
default)
|
||||||
by e.g. \-b/\-\-begin) to column end
|
\-\-cumulative accumulation mode: accumulate amounts from report
|
||||||
\-H \-\-historical accumulate amounts from journal start to column
|
start (specified by e.g. \-b/\-\-begin) to column end
|
||||||
end (includes postings before report start date)
|
\-H \-\-historical accumulation mode: accumulate amounts from
|
||||||
\-l \-\-flat show accounts as a flat list (default). Amounts
|
journal start to column end (includes postings
|
||||||
exclude subaccount amounts, except where the
|
before report start date)
|
||||||
account is depth\-clipped.
|
\-l \-\-flat list/tree mode: show accounts as a flat list
|
||||||
\-t \-\-tree show accounts as a tree. Amounts include
|
(default). Amounts exclude subaccount amounts,
|
||||||
subaccount amounts.
|
except where the account is depth\-clipped.
|
||||||
\-\-drop=N omit N leading account name parts (in flat mode)
|
\-t \-\-tree list/tree mode: show accounts as a tree. Amounts
|
||||||
|
include subaccount amounts.
|
||||||
|
\-\-drop=N in list mode, omit N leading account name parts
|
||||||
\-\-declared include non\-parent declared accounts (best used
|
\-\-declared include non\-parent declared accounts (best used
|
||||||
with \-E)
|
with \-E)
|
||||||
\-A \-\-average show a row average column (in multicolumn
|
\-A \-\-average show a row average column (in multicolumn
|
||||||
@ -10274,8 +10294,7 @@ Flags:
|
|||||||
\-\-summary\-only display only row summaries (e.g. row total,
|
\-\-summary\-only display only row summaries (e.g. row total,
|
||||||
average) (in multicolumn reports)
|
average) (in multicolumn reports)
|
||||||
\-N \-\-no\-total omit the final total row
|
\-N \-\-no\-total omit the final total row
|
||||||
\-\-no\-elide don\[aq]t squash boring parent accounts (in tree
|
\-\-no\-elide in tree mode, don\[aq]t squash boring parent accounts
|
||||||
mode)
|
|
||||||
\-\-format=FORMATSTR use this custom line format (in simple reports)
|
\-\-format=FORMATSTR use this custom line format (in simple reports)
|
||||||
\-S \-\-sort\-amount sort by amount instead of account code/name (in
|
\-S \-\-sort\-amount sort by amount instead of account code/name (in
|
||||||
flat mode). With multiple columns, sorts by the row
|
flat mode). With multiple columns, sorts by the row
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
4393
hledger/hledger.txt
4393
hledger/hledger.txt
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user