docs: more manual updates

This commit is contained in:
Simon Michael 2010-12-05 22:25:49 +00:00
parent 41f95254a8
commit a3cdb7abb2

View File

@ -475,53 +475,56 @@ Examples:
#### Add-on commands #### Add-on commands
The following commands are optional add-ons. Here is their availability: The following extra commands will be available if they have been
[installed](#installing). Note, currently you must invoke them like, eg,
- in the binaries on the download page, they are included where possible `$ hledger-web ...` - not `$ hledger web ...`. The hledger-NAME
*(currently: web on all platforms, vty on all but windows, chart on none?)* executables support the usual hledger options, and possible specific
- when cabal installing the current release, they are enabled by flags options of their own. Add-ons may have varying levels of support and
(see [installing](#installing)). maturity and may not be available on all platforms - if available, they
- in the next release, they will be provided by separate packages (eg are provided on the download page.
hledger-web) and invoked by running a similarly-named executable.
##### chart ##### chart
*Requires additional GTK-related libraries and possibly [other things](http://code.haskell.org/gtk2hs/INSTALL). On ubuntu: `apt-get install libghc6-gtk-dev`* *Requires additional GTK-related libraries and possibly [other things](http://code.haskell.org/gtk2hs/INSTALL). On ubuntu: `apt-get install libghc6-gtk-dev`*
The chart command saves a pie chart of your top account balances to an The chart command saves an image file showing a pie chart of your top
image file (usually "hledger.png", or use -o/--output FILE). You can account balances. It is pretty rudimentary. Note that positive and
adjust the image resolution with --size=WIDTHxHEIGHT, and the number of negative balances will not be displayed together in the same chart; any
accounts with --items=N. balances not matching the sign of the first one will be ignored.
Note that positive and negative balances will not be displayed together in The output file is "hledger.png", or you can specify another with
the same chart; any balances not matching the sign of the first one will -o/--output. Use a different suffix (eg .gif or .jpg) to generate that
be omitted. format.
To show only accounts above a certain depth, use the --depth You can adjust the image resolution with --size=WIDTHxHEIGHT.
option. Otherwise, the chart can include accounts at any depth. If a
parent and child account are both displayed, the parent's balance excludes Set the number of accounts to show with --items=N (default is 10).
the child's.
To show only accounts above a certain depth, use the --depth option;
otherwise the chart can include accounts of any depth. When a parent and
child account both appear in a chart, the parent's balance will be
exclusive of the child's.
Examples: Examples:
$ hledger chart assets --depth 2 $ hledger-chart assets --depth 2
$ hledger chart liabilities --depth 2 $ hledger-chart liabilities --depth 2
$ hledger chart ^expenses -o balance.png --size 1000x600 --items 20 $ hledger-chart ^expenses -o balance.png --size 1000x600 --items 20
$ for m in 01 02 03 04 05 06 07 08 09 10 11 12; do hledger -p 2009/$m chart ^expenses --depth 2 -o expenses-2009$m.png --size 400x300; done $ for m in 01 02 03 04 05 06 07 08 09 10 11 12; do hledger-chart -p 2009/$m ^expenses --depth 2 -o expenses-2009$m.png --size 400x300; done
##### vty ##### vty
*Not available on microsoft windows, except possibly via cygwin.* *Not available on microsoft windows, except possibly via cygwin.*
The vty command starts hledger's curses (full-screen, text) user interface, The vty command starts a simple curses-style (full-screen, text) user interface,
which allows interactive navigation of the print/register/balance which allows interactive navigation of the print/register/balance
reports. This lets you browse around your numbers and get quick insights reports. This lets you browse around your numbers and get quick insights
with less typing. with less typing.
Examples: Examples:
$ hledger vty $ hledger-vty
$ hledger vty -BE food $ hledger-vty -BE food
##### web ##### web
@ -529,16 +532,16 @@ Examples:
*This command can edit or overwrite your journal file.* *This command can edit or overwrite your journal file.*
The web command starts hledger's web interface, and tries to open a web The web command starts a web server providing a web-based user interface,
browser to view it. (If this fails, you'll have to manually visit the url and if possible, opens a web browser to view it. The web UI combines the
shown on the console.) The web interface combines the features of the print, features of the print, register, balance and add commands, and adds a
register, balance and add commands, and adds a general edit command. general edit command.
Examples: Examples:
$ hledger web $ hledger-web
$ hledger web -E -B --depth 2 $ hledger-web -E -B --depth 2
$ hledger web --port 5010 --base-url http://some.vhost.com --debug -f my.journal $ hledger-web --port 5010 --base-url http://some.vhost.com --debug -f my.journal
Warning: unlike all other hledger features, the edit form can alter your Warning: unlike all other hledger features, the edit form can alter your
existing journal data. You can edit, or erase, the journal file through existing journal data. You can edit, or erase, the journal file through
@ -546,20 +549,20 @@ the web ui. There is currently no access control. A numbered backup of the
file will be saved at each edit, in normal circumstances (eg if file file will be saved at each edit, in normal circumstances (eg if file
permissions allow, disk is not full, etc.) permissions allow, disk is not full, etc.)
There are some options specific to the web server: There are some hledger-web-specific options:
--port=N web: serve on tcp port N (default 5000) --port=N serve on tcp port N (default 5000)
hledger will serve pages on port 5000 by default. The server listens on port 5000 by default; use --port to change that.
--base-url=URL web: use this base url (default http://localhost:PORT) --base-url=URL use this base url (default http://localhost:PORT)
Hyperlinks in the web interface all point to "localhost" by default, so if If you want to visit the web UI from other machines, you'll need to use
you want to visit the hledger web server from other machines, you'll need this option to fix the hyperlinks. Just give your machine's host name or
to use this option. Just give your machine's host name or ip address ip address instead of localhost. This option is also lets you conform to a
instead of localhost. This option may also be useful when running hledger custom url scheme when running hledger-web behind a reverse proxy as part
behind a reverse proxy, to conform to your url scheme. Note that the PORT of a larger site. Note that the PORT in the base url need not be the same
in the base url need not be the same as the `--port` argument. as the `--port` argument.
### Other features ### Other features