input: improve config experience with Viper and Cobra #1
Labels
difficulty: medium
Issue has medium complexity.
kind: improvement
New improvement proposal.
scope: code
Issue related to source code.
scope: docs
Issue related to documentation.
scope: test
Issue related to tests.
Motivation: there is no generic way to work with "prefixed" embedded structures. It leads to code duplication and makes it dirty.
Scope:
improve Load functionality, make it generic
https://github.com/octomation/maintainer/blob/b2543194067c4e0b4daebd0b7def287762e5f4b7/internal/config/tool.go#L25-L50
remove workaround with prefixes
solve tech debt with keys warming
https://github.com/octomation/maintainer/blob/b2543194067c4e0b4daebd0b7def287762e5f4b7/internal/config/tool_test.go#L42-L50
find a way how to make
squash with prefix
workhttps://github.com/octomation/maintainer/blob/b2543194067c4e0b4daebd0b7def287762e5f4b7/internal/config/tool_test.go#L82-L120
The text was updated successfully, but these errors were encountered: