Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract client flags specs to seperate methods #321

Merged
merged 1 commit into from
Sep 17, 2021
Merged

Conversation

miry
Copy link
Contributor

@miry miry commented Sep 17, 2021

Make sure the main function is not overhelming,
extract portion of lines to separate methods for better read.

Found that client in toxic add supports both: --upstream and
--downstream. Because it tries to create 2 toxic with single name it
produces the error when tries add --downstream toxic, and in same time
creates the --upstream toxic.

Update the usage help to mention about argument --toxicity <float>

To remove confusion update the client usage help to support only one in
same time. Return error message in case 2 flags provided.

Introduce a new way to add toxics with client:
Provide a structureToxicOptions with all required options and pass to client.AddToxic to add toxic.

@miry miry self-assigned this Sep 17, 2021
miry added a commit that referenced this pull request Sep 17, 2021
miry added a commit that referenced this pull request Sep 17, 2021
@miry miry mentioned this pull request Sep 17, 2021
4 tasks
@miry miry force-pushed the client-extract-methods branch 4 times, most recently from 4f9c70a to d062d0d Compare September 17, 2021 19:04
Make sure the main function is not overhelming,
extract portion of lines to separate methods for better read.

Found that client in `toxic add` supports both: `--upstream` and
`--downstream`. Because it tries to create 2 toxic with single name it
produces the error when tries add `--downstream` toxic, and in same time
creates the `--upstream` toxic.

To remove confusion update the client usage help to support only one in
same time. Return error message in case 2 flags provided.
@miry miry force-pushed the client-extract-methods branch from 18d56b9 to 0bed9b0 Compare September 17, 2021 19:50
@miry miry merged commit ea9bedf into master Sep 17, 2021
@miry miry deleted the client-extract-methods branch September 17, 2021 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant