-
Notifications
You must be signed in to change notification settings - Fork 3
Description
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