snapshot of https://github.com/ActivityWatch/aw-watcher-afk.git (master, 2026-09-16; blobs > 131072B omitted)
This commit is contained in:
25
aw_watcher_afk/__main__.py
Normal file
25
aw_watcher_afk/__main__.py
Normal file
@@ -0,0 +1,25 @@
|
||||
from aw_core.log import setup_logging
|
||||
|
||||
from aw_watcher_afk.afk import AFKWatcher
|
||||
from aw_watcher_afk.config import parse_args
|
||||
|
||||
|
||||
def main() -> None:
|
||||
args = parse_args()
|
||||
|
||||
# Set up logging
|
||||
setup_logging(
|
||||
"aw-watcher-afk",
|
||||
testing=args.testing,
|
||||
verbose=args.verbose,
|
||||
log_stderr=True,
|
||||
log_file=True,
|
||||
)
|
||||
|
||||
# Start watcher
|
||||
watcher = AFKWatcher(args, testing=args.testing)
|
||||
watcher.run()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user