Docs: Updates rules from notes

This commit is contained in:
Paul Beckingham 2015-12-18 09:07:02 -05:00
parent d44af671a3
commit e119e7a779

View file

@ -133,21 +133,11 @@ Built-in Functions
------------------ ------------------
There are several built-in functions, which may be used by rules: There are several built-in functions, which may be used by rules:
error "An error occurred" error("...") Logs, emits and terminates
warning "You have been warned" warning("...") Logs, emits and continues
info "You have been notified" info("...") Logs, emits and continues
log("...") Logs and continues
An error call terminates processing. sum_week("tag1") Sums minutes in the current week for "tag1"
sum_week("tag1")
The 'sum_week' will sum minutes in the current week for the tagset "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.