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

Have the file and debug options be set once when starting the CLI #2

Open
csisl opened this issue Oct 24, 2021 · 1 comment
Open

Have the file and debug options be set once when starting the CLI #2

csisl opened this issue Oct 24, 2021 · 1 comment

Comments

@csisl
Copy link
Owner

csisl commented Oct 24, 2021

When the CLI starts, it would be ideal to provide the debug level and path to the file just a single time. After that, any command can be run with those settings. This might not be supported with click, but it should be doable with cliff.

@csisl
Copy link
Owner Author

csisl commented Oct 24, 2021

Found out that you can use pass_context to halfway solve this issue, so the debug level and file path can be set once when the program starts up. This can be seen in commit 212f60c. However, I haven't seen how to keep the program running and keep entering commands. I tried with a simple while loop in main, but that didn't work. This issue will remain opened until that is complete.

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

No branches or pull requests

1 participant