We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have the following command hierarchy:
rootCmd (meant to initialize logging) +--subCmd (meant to initialize a external service i.e. Redis) +--subSubCmd (meant to perform an action)
I would like the execution of subSubCmd to run a middleware pattern to setup and teardown each inheritance level.
The current PersistentPreRun and PersistentPostRun does something similar but stops at the first command with the function and also interates from parent.
Is there an existing mechanism in cobra to do that? If not, do you think it will be an interesting feature?
The text was updated successfully, but these errors were encountered:
Related to #252 and and fixed in PR 714
Sorry, something went wrong.
This issue is being marked as stale due to a long period of inactivity
That PR did get closed from inactivity but #252 is still open and @poy did put up a PR for it which gated the behavior.
I'm going to close this issue as duplicate as a result; please watch the other issue for a resolution/discussion.
No branches or pull requests
I have the following command hierarchy:
I would like the execution of subSubCmd to run a middleware pattern to setup and teardown each inheritance level.
The current PersistentPreRun and PersistentPostRun does something similar but stops at the first command with the function and also interates from parent.
Is there an existing mechanism in cobra to do that? If not, do you think it will be an interesting feature?
The text was updated successfully, but these errors were encountered: