mlsimkit.common.cli.group¶
- mlsimkit.common.cli.group(**attrs)¶
A parent command for grouping of sub-commands. Ensures all sub-commands support Pydantic-based options and always passes the context.
- Parameters:
attrs – Keyword arguments to pass to
click.Group
.- Returns:
A decorator function that wraps a Click command group with the specified attributes.
This decorator ensures that the context and Pydantic-based options are passed to the command group. It also sets the
show_default
context setting toTrue
to display default values in the help text.