yera.cli.commands.patch

Patch commands — merge credential leaves without deleting siblings.

Symbols

def creds — Merge credential leaves into a path without disturbing siblings.

creds

creds(
    path: str,
    json_str: str | None = None,
    from_file: Annotated[str | None, Parameter(name='--from-file')] = None,
    ctx: Annotated[AppContext, Parameter(parse=False, show=False)],
) → None

Merge credential leaves into a path without disturbing siblings.

Parameters

path
type: str

Dotted path prefix to merge into.

json_str
type: str | None = None

Inline JSON object to merge.

from_file
type: Annotated[str | None, Parameter(name='--from-file')] = None

Path to a JSON file to read from. Use - for stdin.