Commit Graph

277 Commits

Author SHA1 Message Date
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
131a16df6f Add tests 2022-12-08 01:16:00 -08:00
9f0ca5a7df Move mpris out of pkg directory and run gofumpt 2022-11-24 17:36:25 -08:00
b3be8e7027 Fix goreleaser aur config 2022-11-24 16:24:45 -08:00
6a92eba062 Add archlinux package to goreleaser config 2022-11-24 16:23:03 -08:00
33a01a64d6 Add itgui.desktop to goreleaser and fix itgui permissions 2022-11-24 16:20:11 -08:00
919375d214 Add itgui.desktop 2022-11-24 16:18:26 -08:00
ff0ead0343 Prepare for itgui cross-compilation 2022-11-24 16:16:25 -08:00
f3f66176b8 Switch version.txt target to use go generate 2022-11-22 03:23:14 +00:00
2c733edeec Merge pull request 'Move mpris implementation from infinitime library to itd, where it really belongs' (#41) from FloralExMachina/itd:master into master
Reviewed-on: https://gitea.arsenm.dev/Arsen6331/itd/pulls/41
2022-11-22 02:24:51 +00:00
razorkitty
8ee8c39aa7 fixed type in comment about DBus 2022-11-22 02:23:03 +00:00
razorkitty
5699375b2a copy mpris implementation from infinitime library to itd, where it really belongs
moved dbus.go to an internal utils package
added context function parameter to initMusicCtrl and updated main.go to pass it
updated calls.go, maps.go, music.go, and notifs.go to use utils package for getting a dus connection
2022-11-21 19:59:54 +00:00
7ba643888c Remove gitm config as it's no longer needed 2022-11-19 15:38:23 -08:00
23f9344378 Remove pactl dependencies (Arsen6331/infinitime#6) 2022-11-19 15:29:10 -08:00
5284619ac3 Merge pull request 'update itctl usage screen to current output' (#39) from mashuptwice/itd:master into master
Reviewed-on: https://gitea.arsenm.dev/Arsen6331/itd/pulls/39
2022-11-19 04:04:31 +00:00
954e653092 update itctl usage screen to current output 2022-11-19 03:55:22 +00:00
1c0c89b3d4 Switch badge to self-hosted CI 2022-11-18 07:50:21 +00:00
16adc3d4c7 Add go generate script for calculating version number 2022-11-17 21:27:36 -08:00
6dd1faafac Add woodpecker config 2022-11-18 05:02:37 +00:00
d6fa98fdac Add resource loading to ITD FS tab 2022-11-15 19:20:34 -08:00
d84f34f5b9 Mention navigation support in README 2022-11-07 12:24:55 -08:00
87bca3270a Add navigation support via PureMaps 2022-11-07 12:22:14 -08:00
9298d7c920 Update infinitime library 2022-10-25 12:38:02 -07:00
ecca2b320e Update infinitime library 2022-10-20 01:42:23 -07:00
5301546e7e Update infinitime library 2022-10-17 12:50:51 -07:00
1231dd5308 Add warning if current InfiniTime doesn't support BLE FS (#29) 2022-10-17 12:40:51 -07:00
cdc5d22867 Update infinitime library 2022-10-17 12:24:17 -07:00
be57cdeea4 Handle error events in itctl res load command (#29) 2022-10-17 12:23:06 -07:00
53bc192607 Merge pull request 'Add resource loading to ITD' (#28) from resource-loading into master
Reviewed-on: https://gitea.arsenm.dev/Arsen6331/itd/pulls/28
2022-10-16 20:17:49 +00:00
5719e77b59 Add resource loading as part of DFU 2022-10-16 13:17:12 -07:00
aefe6a82ff Close channel once resource uploading complete 2022-10-16 12:42:59 -07:00
a04c95b0be Add -r for rm and -p for mkdir 2022-09-03 16:28:25 -07:00
5dfcd33563 Remove example comments from goreleaser config 2022-09-01 15:09:49 -07:00
a1c6e08987 Fix file extension of Alpine example 2022-09-01 15:02:11 -07:00
e82a9e3f18 Add --allow-untrusted to Alpine example 2022-09-01 15:00:03 -07:00
61d14857d8 Add installation instructions for major distros 2022-09-01 14:58:33 -07:00
4c34634220 Remove download binary badge and add new AUR badge 2022-09-01 14:33:23 -07:00
828d4944f4 Allow automatic release to the AUR 2022-09-01 11:50:41 -07:00
2eb25219d9 Update CI badge 2022-09-01 03:14:05 -07:00
2ab9fbcb80 Add GoReleaser config 2022-09-01 01:52:46 -07:00
a178319e28 Add resource loading to itctl 2022-08-30 13:01:36 -07:00
ec6d216346 Add LoadResources() to API 2022-08-30 12:13:22 -07:00
e50c8430be Improve itgui compilation documentation (Fixes #24) 2022-08-29 13:28:52 -07:00
df6f9f1872 Update infinitime library and bluetooth library (Fixes #22) 2022-08-19 14:05:30 -07:00
74ef74f90d Revert #22 bandaid fix 2022-08-19 14:04:08 -07:00
f2d50d5bd9 Temporary bandaid fix for #22 2022-08-14 00:05:56 -07:00
d59e7af2d1 Fix comment above goroutine code 2022-07-31 02:40:46 -07:00
3c31bd2921 Fix bug where itctl doesn't exit on SIGINT/SIGTERM 2022-07-31 02:22:33 -07:00
900be6f2d0 Fix bug where help command doesn't show flags/subcommands 2022-07-31 02:15:42 -07:00
5cd395a41b Remove GOFLAGS from Makefile as the go tool already looks at that variable 2022-07-22 10:36:19 -07:00