mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Docs: Updated references to built-in functions
This commit is contained in:
parent
dda28637e2
commit
baa7671926
2 changed files with 13 additions and 11 deletions
|
@ -48,5 +48,7 @@ All DOM references have this form:
|
|||
- The above needs to support overlapping tags.
|
||||
|
||||
- The above does not support totals, as this would turn DOM references into a
|
||||
query language. Instead, a 'sum' command could do this.
|
||||
query language. Instead, a 'sum' command could do this. The rules.txt doc
|
||||
already mentions built-in functions.
|
||||
|
||||
|
||||
|
|
|
@ -198,16 +198,6 @@ are used by almost every command.
|
|||
[More TBD]
|
||||
|
||||
|
||||
Built-in Functions
|
||||
------------------
|
||||
There are several built-in functions, which may be used by rules:
|
||||
|
||||
error("...") Emits and terminates
|
||||
warning("...") Emits and continues
|
||||
info("...") Emits and continues
|
||||
sum_week("tag1") Sums minutes in the current week for "tag1"
|
||||
|
||||
|
||||
--- Raw Notes ---
|
||||
|
||||
- Need to distinguish between regular time and over time, with different rates
|
||||
|
@ -221,3 +211,13 @@ There are several built-in functions, which may be used by rules:
|
|||
|
||||
- Need to distinguish between rules that will be supported at 1.0.0, and the
|
||||
long term enhancements.
|
||||
|
||||
- There will need to be several built-in functions, for use by rules:
|
||||
|
||||
error("...") Emits and terminates
|
||||
warning("...") Emits and continues
|
||||
info("...") Emits and continues
|
||||
sum_week("tag1") Sums minutes in the current week for "tag1"
|
||||
|
||||
These are not good examples.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue