consul-esm
consul-esm copied to clipboard
Config Struct Contains Unconfigurable Fields
Currently configuration is split between the Config
struct and the HumanConfig
struct where HumanConfig
is a subset of Config
fields that are actually configurable by the practitioner. The HumanConfig
values are then merged with the Config
struct that is then consumed.
This set-up can be confusing as not all fields in Config
are actually configurable. New configurable configs also have to be added into both structs.
One possible solution would be to refactor out non-configurable options out of Config
and into their own variables and remove the need for HumanConfig
.