From e119e7a779fffb23ccdaa2b843ae147c37291b8e Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Fri, 18 Dec 2015 09:07:02 -0500 Subject: [PATCH] Docs: Updates rules from notes --- doc/rules.txt | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/doc/rules.txt b/doc/rules.txt index 286cf7f4..604cc79e 100644 --- a/doc/rules.txt +++ b/doc/rules.txt @@ -133,21 +133,11 @@ Built-in Functions ------------------ There are several built-in functions, which may be used by rules: - error "An error occurred" - warning "You have been warned" - info "You have been notified" - -An error call terminates processing. - - sum_week("tag1") - -The 'sum_week' will sum minutes in the current week for the tagset "tag1". + error("...") Logs, emits and terminates + warning("...") Logs, emits and continues + info("...") Logs, emits and continues + log("...") Logs and continues + sum_week("tag1") Sums minutes in the current week for "tag1" --- -P: Not sure I like the python-style. Going with it for now. - -P: So rules needs a set of builtins (TBD) -F: Builtins yes. - I guess we now just have to complete the grammar. -