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

Lazy loading of commands #103

Open
janluke opened this issue Jan 2, 2022 · 0 comments
Open

Lazy loading of commands #103

janluke opened this issue Jan 2, 2022 · 0 comments

Comments

@janluke
Copy link
Owner

janluke commented Jan 2, 2022

Inspired by

In this answer, I propose a possible solution:

Give a look to this example: https://github.com/janluke/cloup/tree/lazy-loading-example/examples/lazy_loading.

The idea is that rather than extending a MultiCommand, I define proxies (LazyCommand and LazyGroup) for lazy-loaded commands.
Then I use those lazy commands as if they were normal commands.

Nonetheless, I've never used lazy loading in my programs, so I'd appreciate feedback on this. Also, if you are interested in this feature, please let me know with a thumb up.

@janluke janluke added feature and removed enhancement New feature or request labels May 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant