Commit graph

31 commits

Author SHA1 Message Date
John Wiegley
fb5428ce85 Added support for metadata and tagging, and made regexs a first-class type. 2009-02-01 22:10:32 -04:00
John Wiegley
ae65e8ae05 Moved the pre-commands to their own file, and created new "args" command. 2009-02-01 18:36:28 -04:00
John Wiegley
66b097bda7 Moved the args_to_predicate function to predicate.cc. 2009-02-01 18:35:44 -04:00
John Wiegley
e61696a91b Moved chain_xact_handlers into its own file, chain.h and chain.cc. 2009-02-01 18:29:30 -04:00
John Wiegley
307a933180 When outputting a calculated value expression with "parse", show XML too. 2009-02-01 01:47:36 -04:00
John Wiegley
e4b1359959 Restored the --pager option. 2009-02-01 01:47:21 -04:00
John Wiegley
9d267fa133 Inspired by Omari Norman, I've rewritten main.cc so it's easy to approach. 2009-01-31 18:52:34 -04:00
John Wiegley
e1ce024546 Added some missing break statements. 2009-01-31 14:51:30 -04:00
John Wiegley
6423e44c11 Pre-commands (like "parse") now correctly recognized. 2009-01-31 01:21:46 -04:00
John Wiegley
cdb123974c Created a new stream.h file for dealing with output streaming. 2009-01-30 00:40:46 -04:00
John Wiegley
900a92e115 Added support for Unicode text in Ledger files, thanks to 'utfcpp', which can
be located at http://utfcpp.sourceforge.net.
2009-01-23 19:50:00 -04:00
John Wiegley
7ee583a448 Correctly handle "bare parentheses" in the command regexps. 2009-01-23 03:26:47 -04:00
John Wiegley
0b9f22b4d2 Redid the way command-line arguments are processed. Before, Ledger used - and
-- to mean special things after the command verb was seen.  But now, what used
to be specified as this:

  ledger -n reg cash -payable -- shell

Is now specified as this:

  ledger reg -n cash not payable @shell

It could also be specified as:

  ledger -n reg \(cash and not payable\) and @shell
2009-01-22 16:27:24 -04:00
John Wiegley
3682ea6f8c Added support for "anonymizing" any report with --anon. 2009-01-20 20:05:41 -04:00
John Wiegley
887828a40c Increased copyright range to include 2009. 2009-01-20 01:53:31 -04:00
John Wiegley
7ffe0e1539 Added back several cost reporting options. 2009-01-19 22:28:34 -04:00
John Wiegley
5e25a6d838 Pass in the total_expr directly to changed_value_xacts. 2009-01-19 22:28:17 -04:00
John Wiegley
e9a5a9bd77 Added back the -V (market value) option. 2009-01-19 22:28:00 -04:00
John Wiegley
83648af19f Added the concept of a "display_total", used for showing the values in the
totals column of both the register and balance reports.  This is different
from the internal calculated total, which is still "total_expr".
2009-01-19 22:27:10 -04:00
John Wiegley
e293132729 Changed a plain equality into a strcmp. 2008-09-18 11:42:43 -04:00
John Wiegley
1fcf7b5fc1 Move handling of all commands to the value expression subsystem, rather than
handling them explicitly in main.cc.
2008-09-18 11:42:17 -04:00
John Wiegley
41c33a2442 Restored --cleared, --pending, --uncleared, -X and -Y. 2008-09-16 05:05:23 -04:00
John Wiegley
53c6e826f1 Restored --format, --date-format (-y), and --input-date-format options. 2008-09-14 19:44:30 -04:00
John Wiegley
6432d7c594 Added back a lot of hacktastic logic from 2.6.1 that made the "bal" command
somewhat smart about how it interpreted certain options.  Beware, code, for
your days are not long-lived.
2008-08-14 04:14:48 -04:00
John Wiegley
b488d1d62f Re-enabled many more options, among them -n. 2008-08-14 03:30:03 -04:00
John Wiegley
c7c709cd0b Restored the -p, -b and -e reporting options. 2008-08-14 02:40:32 -04:00
John Wiegley
b134a98e1e Enabled the --tail and --head options. 2008-08-13 02:58:49 -04:00
John Wiegley
ace4b65487 The register report is now mostly displaying multi-line balances correctly.
It still shows lots even when --lots isn't specified, though.
2008-08-10 03:49:03 -04:00
John Wiegley
7ffb6c472c The balance report is working again. 2008-08-10 02:53:56 -04:00
John Wiegley
c9d575abce Basic balance reports are working again! 2008-08-10 00:57:29 -04:00
John Wiegley
f6f4a46cf5 Moved around most of the files so that source code is in src/, documentation
is in doc/, etc.
2008-08-05 18:05:49 -04:00
Renamed from report.cc (Browse further)