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

How to create root level method calling for each submodule after flags parsing #674

Open
dagar17 opened this issue Apr 12, 2018 · 2 comments
Labels
kind/support Questions, supporting users, etc.

Comments

@dagar17
Copy link

dagar17 commented Apr 12, 2018

Hi , In my command line application I have to put a captcha for each sub module after flags validation. So just want to put this captcha code in root level to call for each sub module but after flags have been parsed. How can i do that

@github-actions
Copy link

This issue is being marked as stale due to a long period of inactivity

@johnSchnake
Copy link
Collaborator

Thats a great question; the persistentPreRun occurs before the flag parsing I believe and so there isn't a great way to inherit behavior after the flags are parsed. I know this is quite stale but I'm going to tag it appropriately for now and leave open in case others have recommendations.

In general, it seems like you'd need to put that logic in the Run and just repeat it? Not sure if others have tried a pattern of putting it in the prerun and forcing flags to parse or something like that?

@johnSchnake johnSchnake added kind/support Questions, supporting users, etc. and removed kind/stale labels Mar 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/support Questions, supporting users, etc.
Projects
None yet
Development

No branches or pull requests

2 participants