summaryrefslogtreecommitdiff
path: root/src/report.cc
diff options
context:
space:
mode:
authorCraig Earls <enderw88@gmail.com>2012-10-26 13:33:27 -0700
committerCraig Earls <enderw88@gmail.com>2012-10-26 13:33:27 -0700
commit10180f0fffd5dcb14df06617c17b1607a5818bfe (patch)
tree64b932bf87796cc4ea705e3f5767fd4b009c1731 /src/report.cc
parentb044a74bd34afdc27baf6241fe398690ff5e043a (diff)
downloadfork-ledger-10180f0fffd5dcb14df06617c17b1607a5818bfe.tar.gz
fork-ledger-10180f0fffd5dcb14df06617c17b1607a5818bfe.tar.bz2
fork-ledger-10180f0fffd5dcb14df06617c17b1607a5818bfe.zip
Added "draft" and "lisp" command synonyms
Diffstat (limited to 'src/report.cc')
-rw-r--r--src/report.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/report.cc b/src/report.cc
index dc5a0704..9e085a98 100644
--- a/src/report.cc
+++ b/src/report.cc
@@ -1592,7 +1592,10 @@ expr_t::ptr_op_t report_t::lookup(const symbol_t::kind_t kind,
return POSTS_REPORTER(new report_commodities(*this));
}
break;
-
+ case 'd':
+ if (is_eq(p, "draft")) {
+ return WRAP_FUNCTOR(xact_command);
+ }
case 'e':
if (is_eq(p, "equity")) {
HANDLER(generated).on("#equity");
@@ -1614,7 +1617,10 @@ expr_t::ptr_op_t report_t::lookup(const symbol_t::kind_t kind,
return POSTS_REPORTER(new format_ptree(*this,
format_ptree::FORMAT_JSON));
break;
-
+ case 'l':
+ if (is_eq(p, "lisp"))
+ return POSTS_REPORTER(new format_emacs_posts(output_stream));
+ break;
case 'o':
if (is_eq(p, "org"))
return POSTS_REPORTER(new posts_to_org_table