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

Investigate dynamic model creation for multiple input args in commands #9

Open
edornd opened this issue May 20, 2022 · 0 comments
Open
Assignees
Labels
enhancement New feature or request

Comments

@edornd
Copy link
Owner

edornd commented May 20, 2022

Is your feature request related to a problem? Please describe.
Currently, clidantic commands only accept one argument, the single configuration.
This is not an issue per se, the model must be a single entity, however for multiple configs it will require the user to combine every sub-model into a wrapper model to work with clidantic.

Describe the solution you'd like
We should be able to pass multiple models as command inputs (and possibly primitives, to be evaluated), automatically wrapping them into a single entity at runtime.

Describe alternatives you've considered
Just keep it as it is if it becomes cumbersome, by simply informing the user to wrap each model inside a single one.

Additional context
See https://pydantic-docs.helpmanual.io/usage/models/#dynamic-model-creation

@edornd edornd added the enhancement New feature or request label May 20, 2022
@edornd edornd self-assigned this May 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant