summaryrefslogtreecommitdiff
path: root/src/session.h
Commit message (Collapse)AuthorAgeFilesLines
...
* Changed protection level of many parts of commodity_tJohn Wiegley2009-11-021-1/+1
|
* Wire up the --european optionJohn Wiegley2009-11-021-1/+5
|
* Added a --european flag, to use commas for decimalsJohn Wiegley2009-11-021-0/+2
| | | | | | Ledger can often figure this out for itself, but this flag just makes it the default behavior. It is meant to be added to one's ~/.ledgerrc file.
* Create a --cache option, for using a binary cacheJohn Wiegley2009-10-311-0/+2
|
* Moved ownership of master account into journal_tJohn Wiegley2009-10-301-6/+3
| | | | The journal_t now completely represents the data part of a session.
* Setting --date-format in ~/.ledgerrc works againJohn Wiegley2009-10-291-2/+4
|
* Rewrote the way date and time I/O is managedJohn Wiegley2009-10-251-3/+3
|
* Removed reliance on strptime/strftimeJohn Wiegley2009-10-111-1/+1
| | | | | | | | The code now uses Boost's input and output facets for times and dates. This ensures completely consistency regarding timezones and times, and fixes the regression test that was broken while I was away coding in London (where it was GMT-0 and I didn't notice the difference between local and GMT).
* Restored --download, although not done yetJohn Wiegley2009-06-241-3/+3
| | | | | | The problem at this point is that it's recording prices in the price database multiple times; it should only need to download a price for each commodity once per day.
* Restored --input-date-format optionJohn Wiegley2009-06-181-1/+6
|
* When --end is used, set a "terminus" dateJohn Wiegley2009-06-161-7/+0
| | | | | | | This means that final balance valuations (with -V or -X) will be done in terms of the date given to --end, rather than based on the current day. Fixes 647D5DB9-DBBB-47C8-80CE-F3F70E3B0253
* Added new debug option --optionsJohn Wiegley2009-06-021-3/+14
| | | | | This reports which options are in place before invoking a command, and where exactly each option value came from.
* Reduced the #include dependency tree to a minimumJohn Wiegley2009-03-041-3/+6
|
* The Great Renaming, Part IIJohn Wiegley2009-02-231-3/+3
| | | | | The last commit did not contain the majority of changes because of a slight mishap. This contains the real changeset.
* Added --exchange (-x) optionJohn Wiegley2009-02-221-0/+3
| | | | | | | This is like -V, except it lets you specify the goal commodity to report in terms of, for example: reg -x CAD
* Enabled --current optionJohn Wiegley2009-02-201-0/+4
|
* Added a --strict session optionJohn Wiegley2009-02-191-0/+1
| | | | | | | When enabled, if any accounts or commodities are seen in an uncleared transaction, which were not seen previously in a cleared or pending transaction or a textual directive dealing with accounts or commodities, a warning is generated about the unknown item.
* Fixed several unused value and param warningsJohn Wiegley2009-02-161-1/+1
|
* Split up session_t::reread_journal_files()John Wiegley2009-02-151-1/+1
| | | | | You now call session_t::close_journal_files() followed by session_t::read_journal_files().
* Added a "reload" command, for use at the REPLJohn Wiegley2009-02-131-0/+3
| | | | | | | Created a new function, session_t::reread_journal_files, which throws away all previous state data and reads in the same files again. This is needed to allow Emacs to communicate with Ledger via the REPL, so that it tell Ledger when it has made changes to the user's data file.
* If a ledger file is specified in .ledgerrc, ignore the environment.John Wiegley2009-02-081-1/+1
|
* Added support for value expression definitions.John Wiegley2009-02-081-1/+1
| | | | | | | | Example: ] expr f(x) := x + 100 ] expr f(100) 200
* Added --leeway option (for quote downloading) into session_t.John Wiegley2009-02-071-0/+7
|
* Threw away the "multiple parser" infrastructure.John Wiegley2009-02-071-18/+6
|
* Allow value expressions to gain access to option settings.John Wiegley2009-02-071-0/+2
| | | | | | | | | | For example, "ledger eval options.limit" prints 0 (for false), but: "ledger -l hello eval options.limit" print "hello"s, since the value of options.limit, once set to a value, is that string. For flag options, such as -Y, eval prints 0 if unset, and 1 if set. This feature allows value expressions to be conditionalized based on the presence of user options.
* More revision to the way options are handled; reworked CSV command.John Wiegley2009-02-071-2/+1
|
* Moved the --abbrev-len option to report_t.John Wiegley2009-02-061-1/+0
|
* Restored all the option handlers from 2.6.2, but not the options themselves.John Wiegley2009-02-061-130/+34
|
* Moved --pager handler back into report_t.John Wiegley2009-02-051-6/+0
|
* Greatly simplified the way option and command handlers are defined.John Wiegley2009-02-051-0/+1
|
* Removed an unnused member.John Wiegley2009-02-051-2/+0
|
* Removed all references to the old binary cache.John Wiegley2009-02-041-4/+0
|
* Moved the --pager option to the session object, rather than the report object.John Wiegley2009-02-041-0/+6
|
* Minor fixes to the REPL when using libedit.John Wiegley2009-02-041-1/+2
|
* Largely removed all of Ledger's use of global variables, for the REPL's sake.John Wiegley2009-02-041-30/+4
|
* Removed the global references to session->report.John Wiegley2009-02-031-3/+1
|
* Updated some internal documentation.John Wiegley2009-02-021-8/+7
|
* Changed many uses of "unsigned long" to std::size_t.John Wiegley2009-02-011-1/+1
|
* Inspired by Omari Norman, I've rewritten main.cc so it's easy to approach.John Wiegley2009-01-311-8/+19
|
* Added documentation stubs for all include files and classes.John Wiegley2009-01-311-0/+19
|
* Whitespace cleanup.John Wiegley2009-01-291-27/+27
|
* Switched over to using irrxml for parsing XML, rather than expat.John Wiegley2009-01-241-2/+0
|
* Redid the way command-line arguments are processed. Before, Ledger used - andJohn Wiegley2009-01-221-20/+5
| | | | | | | | | | | | | | | -- 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
* Increased copyright range to include 2009.John Wiegley2009-01-201-2/+2
|
* Factored common parts of entry_t and xact_t into new item_tJohn Wiegley2008-09-191-1/+1
|
* Removed some dead code and updated the binary streaming code for op_t andJohn Wiegley2008-08-171-2/+2
| | | | value_t.
* Added a session_t::clean_all method, for clearing all xdata within a session.John Wiegley2008-08-161-0/+5
|
* Moved a block of code from report to session, though it's still commented out.John Wiegley2008-08-141-0/+14
|
* The -f flag now works again.John Wiegley2008-08-131-2/+7
|
* Removed all use of USE_BOOST_PYTHON from the main Ledger sources. When PythonJohn Wiegley2008-08-081-13/+0
| | | | | support is enabled for use within Ledger, it will do so through the current scoping mechanism.