diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-05 03:49:49 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-05 03:49:49 -0400 |
commit | 37006741d62d630f8d0ef58fece07af15dcf82c7 (patch) | |
tree | fe008bda4570cc8e4e0a95651a6e3761b19ee36c /src/work.h | |
parent | 327fdca8f43bee675c0e1bfd5e3c3dca6bafc5d0 (diff) | |
download | fork-ledger-37006741d62d630f8d0ef58fece07af15dcf82c7.tar.gz fork-ledger-37006741d62d630f8d0ef58fece07af15dcf82c7.tar.bz2 fork-ledger-37006741d62d630f8d0ef58fece07af15dcf82c7.zip |
Support using Ledger as a script interpretor.
The file must begin with '#!/usr/bin/env ledger --script'. You can add a -f
option to the options, but it must come before --script.
Diffstat (limited to 'src/work.h')
-rw-r--r-- | src/work.h | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -45,17 +45,12 @@ typedef std::pair<string_iterator, string_iterator> string_iterator_pair; void handle_debug_options(int argc, char * argv[]); void read_environment_settings(report_t& report, char * envp[]); -strings_list read_command_arguments(report_t& report, strings_list args); +strings_list read_command_arguments(scope_t& scope, strings_list args); void normalize_session_options(session_t& session); -function_t look_for_precommand(report_t& report, const string& verb); +function_t look_for_precommand(scope_t& scope, const string& verb); +function_t look_for_command(scope_t& scope, const string& verb); void read_journal_files(session_t& session, const string& account); -function_t look_for_command(report_t& report, const string& verb); void normalize_report_options(report_t& report, const string& verb); -void create_output_stream(report_t& report); -void invoke_command_verb(report_t& report, - function_t& command, - string_iterator args_begin, - string_iterator args_end); } // namespace ledger |