Commit Graph

16 Commits

Author SHA1 Message Date
Devin Buhl
baacf8df6e
fix: update golangci-lint and fix linting issues (#353) 2025-04-15 16:57:31 -04:00
Nik LaBelle
7d1af014c0
Trim whitespace in API key file (#327)
Many editors insert newlines automatically, so we need to trim the api key from the file before we try to use it.
2024-11-14 04:57:26 -05:00
Devin Buhl
0cb318682e
fix: make api-key less restrictive (#270)
* fix: make api-key less restrictive

Signed-off-by: Devin Buhl <devin@buhl.casa>

* fix: update tests

Signed-off-by: Devin Buhl <devin@buhl.casa>

---------

Signed-off-by: Devin Buhl <devin@buhl.casa>
2024-02-28 15:45:53 -05:00
Russell Troxel
b8426af721
Add golangci-lint, fix lint warnings (#227)
* Add golangci-lint, fix lint warnings

Signed-off-by: Russell Troxel <russell@troxel.io>

* Set `shell` on lint actions

Signed-off-by: Russell Troxel <russell@troxel.io>

* go fmt

Signed-off-by: Russell Troxel <russell@troxel.io>

---------

Signed-off-by: Russell Troxel <russell@troxel.io>
2023-10-08 14:15:07 -04:00
Russell Troxel
a42b0cb848
Fix #154: Do not require Api Key or URL in parent config, validate in child config (#157)
Signed-off-by: Russell Troxel <russell@troxel.io>
2023-04-27 16:56:49 -04:00
Russell Troxel
9d4a8a1af2
Middleware (#142) 2023-04-07 09:42:41 -04:00
Russell Troxel
6dcb7b4d92
Add Sabnzbd Support (#141)
* Add Sabnzbd Support

Signed-off-by: Russell Troxel <russell@troxel.io>

* Fix collector name in sabnzbd logger

Signed-off-by: Russell Troxel <russell@troxel.io>

---------

Signed-off-by: Russell Troxel <russell@troxel.io>
2023-04-03 19:59:42 -04:00
Devin Buhl
98e7b015e4
fix: validation string on enable-additional-metrics (#132) 2023-03-22 09:49:16 -04:00
Russell Troxel
ba4b336dfa
Fix #128: Get ApiVersion from defaults, not XMLConfig (#131)
Signed-off-by: Russell Troxel <russelltroxel@gmail.com>
2023-03-21 12:16:53 -04:00
Russell Troxel
662906ae64
Fix custom messages for config validation (#127) 2023-03-20 12:45:08 -04:00
Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs
ada5e82dd9
fix: Custom config validation message does not work on pointer (#126) 2023-03-20 08:29:16 -04:00
Russell Troxel
6ec2c40dc2
Additional Compatibility Measures (#122) 2023-03-18 13:18:31 -04:00
Russell Troxel
e4441056ab
Ensure Backwards compatiblity of new flags & envvar names (#120) 2023-03-18 13:08:59 -04:00
Russell Troxel
e3edbb2a65
Add --backfill & --backfill-since-date options for Prowlarr. (#117)
* Add backfill options to Prowlarr

Signed-off-by: Russell Troxel <russell.troxel@segment.com>

* Update Readme

Signed-off-by: Russell Troxel <russelltroxel@gmail.com>

---------

Signed-off-by: Russell Troxel <russell.troxel@segment.com>
Signed-off-by: Russell Troxel <russelltroxel@gmail.com>
2023-03-18 12:29:56 -04:00
Russell Troxel
3cd02da157
(3/3) Use Zap for structured logging rather than logrus. (#115)
* Refactor from logrus to zap, with structured logging

Signed-off-by: Russell Troxel <russell.troxel@segment.com>

* Print config errors to stderr when before initLogger

Signed-off-by: Russell Troxel <russell.troxel@segment.com>

---------

Signed-off-by: Russell Troxel <russell.troxel@segment.com>
2023-03-18 11:16:02 -04:00
Russell Troxel
78c9991d1e
(2/3) Use Cobra, Koanf, and Ozzo rather than urfave/cli (#114)
* Refactor to use Cobra and Koanf for CLI parsing

Signed-off-by: Russell Troxel <russell.troxel@segment.com>

* use gookit/validate rather than ozzo-validation

Signed-off-by: Russell Troxel <russell.troxel@segment.com>

---------

Signed-off-by: Russell Troxel <russell.troxel@segment.com>
2023-03-18 07:31:35 -04:00