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

refactor(rest-plugin): make it more modular #720

Merged
merged 2 commits into from
Jan 23, 2024

Conversation

tiagolobocastro
Copy link
Contributor

@tiagolobocastro tiagolobocastro commented Jan 22, 2024

Adds common cli args to the library, which the binary then makes use of.
Tidies up the error scenario with common error handling and implicit trace flushing.
Add execute trait to allow for tidier composition of operations, which will be especially
useful to reduce code duplication in the kubectl plugin.

Adds common cli args to the library, which the binary then makes use of.
Tidies up the error scenario with common error handling and implicit trace flushing.
todo: add multiple execution handlers for all subcommands as this will allow
having different handlers in the external kubectl-plugin crate.

Signed-off-by: Tiago Castro <tiagolobocastro@gmail.com>
Allows for tidier composition of operations, which will be especially useful
to reduce code duplication in kubectl plugin.

Signed-off-by: Tiago Castro <tiagolobocastro@gmail.com>
@tiagolobocastro tiagolobocastro changed the title refactor(rest-plugin): add rest-plugin cli args refactor(rest-plugin): make it more modular Jan 23, 2024
@tiagolobocastro
Copy link
Contributor Author

bors merge

@bors-openebs-mayastor
Copy link

Build succeeded:

@bors-openebs-mayastor bors-openebs-mayastor bot merged commit c343aff into develop Jan 23, 2024
6 checks passed
@bors-openebs-mayastor bors-openebs-mayastor bot deleted the rest-plugin branch January 23, 2024 10:33
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.

2 participants