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

cmd, tracing: decouple cli from tracing package #2059

Merged
merged 2 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 tracing. Tracing 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. It additionally removes a manual parsing of cmd arguments for tracing enabled flag.

Packages swarm-smoke and swarm-smoke-pss use the tracing package. 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
@janos janos merged commit b8c09a1 into master Dec 23, 2019
Swarm Core - Sprint planning automation moved this from Backlog to Done Dec 23, 2019
@janos janos deleted the tracing-cli-decouple branch December 23, 2019 10:23
@acud
Copy link
Member

acud commented Jan 6, 2020

👍

@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