[core] Allow modules to specify default update interval

Expanding on the implementation in d582016, add a decorator
`core.module.every()` that allows a module to specify how often to
update the module's state.

This can still be overridden using the CLI parameter `interval`.
This commit is contained in:
tobi-wan-kenobi 2020-03-29 14:30:59 +02:00
parent b66b13211e
commit bd7ff3c8f1
3 changed files with 18 additions and 0 deletions

View file

@ -35,3 +35,11 @@ class Module(core.module.Module):
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
```
## `update` vs. `full_text`
TODO
## TODOs
- default update interval
- scrolling
-