mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Docs: Updates rules from notes
This commit is contained in:
parent
d44af671a3
commit
e119e7a779
1 changed files with 5 additions and 15 deletions
|
@ -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.
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue