Skip to content

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

@edornd

Description

@edornd

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions