Skip to content
This repository has been archived by the owner on Aug 2, 2021. It is now read-only.

cmd, metrics: decouple metrics and cli library #2057

Merged
merged 4 commits into from
Dec 23, 2019
Merged

Conversation

janos
Copy link
Member

@janos janos commented Dec 20, 2019

This PR decouples cli library from swarm metrics. Metrics defines and uses cli flags for configuration making it highly coupled to the main package with hard requirement on the specific cli library. This change removes that coupling allowing switching to a different cli library in the main package.

Packages swarm-smoke and swarm-smoke-pss use only flags from the metrics package, not any other code. I have duplicated these flags as all swarm smoke packages would have to be reviewed soon and improved.

This PR is a preparation for using cobra/viper in swarm main package.

@janos janos self-assigned this Dec 20, 2019
@janos janos added this to Backlog in Swarm Core - Sprint planning via automation Dec 20, 2019
@pradovic pradovic self-requested a review December 20, 2019 14:52
@janos janos merged commit f9c6432 into master Dec 23, 2019
Swarm Core - Sprint planning automation moved this from Backlog to Done Dec 23, 2019
@janos janos deleted the metrics-cli-decouple branch December 23, 2019 17:53
@acud acud added this to the 0.5.5 milestone Jan 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

4 participants