♻️ refactor(cache-stats)!: refactor the wakatime and music stats modules
Modules now spawn the scripts automatically at startup and kill them at exit. Both stats are handled by a single script and a lockfile is used to avoid multiple instances spawning. BREAKING CHANGE: Please remove any user services previously used to spawn scripts.
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
-- │ WakaTime Stats │
|
||||
-- ╰─────────────────────────────────────────────────────────╯
|
||||
local M = {}
|
||||
|
||||
require("utils.cache_stats")
|
||||
local cache_file = os.getenv("HOME") .. "/.cache/wakatime_cache.txt"
|
||||
|
||||
local function read_cache()
|
||||
|
||||
Reference in New Issue
Block a user