Commit Graph

9 Commits

Author SHA1 Message Date
Elara b8746cc924 Run formatter 2023-01-03 09:18:57 -08:00
Hunman 15b5d2888e Warn when Koanf read fails (#47)
Figured out the problem in issue #32, the toml file syntax was invalid (I had `'` instead of `"` at some values), but there was nothing in the logs about it.

Moved the config reading (and watching) into the same function, which logs the error as a warning.

I wanted to try moving the whole `if` into a separate function, but I kept getting errors when I tried to extract the `path` from the `File`, so I have that attempt in a separate branch not in this pull request: 5a84bf8148

Reviewed-on: https://gitea.arsenm.dev/Arsen6331/itd/pulls/47
Co-authored-by: Hunman <sanyi.exe@gmail.com>
Co-committed-by: Hunman <sanyi.exe@gmail.com>
2023-01-02 09:05:23 +00:00
Elara 9f0ca5a7df Move mpris out of pkg directory and run gofumpt 2022-11-24 17:36:25 -08:00
Elara 5043bb8cfe Add metrics collection via sqlite 2022-05-10 18:03:37 -07:00
Elara 711df70edc Allow changing bluetooth adapter ID 2022-05-02 20:17:38 -07:00
Elara 57768acb94 Switch from viper to koanf 2022-02-21 11:20:02 -08:00
Elara ed3b7b2a99 Update default values to reflect new config fields 2021-11-01 11:28:55 -07:00
Elara 0fe83fccc1 Fix debug config paths 2021-08-24 08:55:22 -07:00
Elara ef6c37c20b Add config defaults and run go fmt 2021-08-24 08:54:08 -07:00