This is more of a small nit I noticed while working on #18, some of the product config structs don't share the same naming, or generally lack consistency:
Then there's the issue that Consul and Nomad have no equivalent exposed here, and that it would probably make sense for these to be booleans instead of string values.
This is more of a small nit I noticed while working on #18, some of the product config structs don't share the same naming, or generally lack consistency:
For example, in
Vault
andBounary
, there's aKey
:https://github.com/devops-rob/target-cli/blob/7a10f70ca7b6f6da387f82a00136414b66ff0ba4/cmd/root.go#L64
https://github.com/devops-rob/target-cli/blob/7a10f70ca7b6f6da387f82a00136414b66ff0ba4/cmd/root.go#L41
But, for
Nomad
andConsul
there's aNomadKey
andConsulKey
:https://github.com/devops-rob/target-cli/blob/7a10f70ca7b6f6da387f82a00136414b66ff0ba4/cmd/root.go#L107
https://github.com/devops-rob/target-cli/blob/7a10f70ca7b6f6da387f82a00136414b66ff0ba4/cmd/root.go#L95
Or, in
Bounary
there'sTlsInsecure
(better name):https://github.com/devops-rob/target-cli/blob/7a10f70ca7b6f6da387f82a00136414b66ff0ba4/cmd/root.go#L42
But, In
Vault
there's aSkipVerify
(doing the same thing, with a different, and less ideal name):https://github.com/devops-rob/target-cli/blob/7a10f70ca7b6f6da387f82a00136414b66ff0ba4/cmd/root.go#L67
Then there's the issue that Consul and Nomad have no equivalent exposed here, and that it would probably make sense for these to be booleans instead of string values.