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

Implement a helper function to generate cobra.Command.RunE #1741

Open
robert-zaremba opened this issue Jan 24, 2023 · 0 comments
Open

Implement a helper function to generate cobra.Command.RunE #1741

robert-zaremba opened this issue Jan 24, 2023 · 0 comments
Assignees
Labels
C:Core Core app features

Comments

@robert-zaremba
Copy link
Member

Summary

There is lot of code repetition in CLI Query functions. We can easily create a high order function for RunE in queries which will take a function, which will take args and flags and return RunE instance.

@robert-zaremba robert-zaremba added the C:Core Core app features label Jan 24, 2023
@robert-zaremba robert-zaremba self-assigned this Jan 24, 2023
@robert-zaremba robert-zaremba changed the title Implement a helper function to Implement a helper function to generate cobra.Command.RunE Jan 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C:Core Core app features
Projects
None yet
Development

No branches or pull requests

1 participant