table of contents
| TIMEW-GET(1) | User Manuals | TIMEW-GET(1) |
NAME¶
timew-get - display DOM values
SYNOPSIS¶
timew get <DOM>...
DESCRIPTION¶
Validates the DOM reference, then obtains the value and displays it.
In case of an invalid reference an error message is displayed on stderr and the exit code is 1.
All DOM references start with dom, there are 4 subreferences that can be accessed:
See timew-config(7) for more details on those. It is an error to reference an interval or tag that does not exist.
If more than one valid DOM reference is given, the results are concatenated by a space.
EXAMPLES¶
Query current time tracking
This query returns 1 if time tracking is active, 0 if not.
Display the 3rd interval of a query as JSON
$ timew get dom.tracked.3.json :month FOO
{"id":42,"start":"20250802T101224Z","end":"20250802T101224Z","tags":["FOO","BAR"]}
Note that the 3 in the reference refers to the 3rd interval in the query result, not the interval with ID 3!
SEE ALSO¶
| 2025-11-02 | timew 1.9.1 |