boilercv_pipeline.parser
#
Modified Cappa CLI parser that surfaces the first innermost context.
A hacky workaround for now, since Cappa traverses structures differently than vanilla Pydantic, the uppermost context is not preserved correctly.
Module Contents#
Functions#
Modified Cappa CLI parser that surfaces the first innermost context. |
|
Get the first innermost context. |
|
Create a paired argument, enabling the |
API#
- boilercv_pipeline.parser.invoke(
- obj: type | cappa.command.Command[Any],
- *,
- deps: collections.abc.Sequence[collections.abc.Callable[..., Any]] | collections.abc.Mapping[collections.abc.Callable[..., Any], cappa.invoke.Dep[Any] | Any] | None = None,
- argv: list[str] | None = None,
- backend: collections.abc.Callable[..., Any] | None = None,
- color: bool = True,
- version: str | cappa.arg.Arg[Any] | None = None,
- help: bool | cappa.arg.Arg[Any] = True,
- completion: bool | cappa.arg.Arg[Any] = True,
- theme: Any | None = None,
- output: cappa.output.Output | None = None,
- help_formatter: cappa.help.HelpFormatable | None = None,
Modified Cappa CLI parser that surfaces the first innermost context.
- boilercv_pipeline.parser.get_first_innermost_context(
- model: context_models.ContextStore,
Get the first innermost context.