yera.cli.commands.put

Put commands — write credential leaves.

Symbols

def cred — Set a single credential leaf.
def creds — Replace all credential leaves under a path (full replace).

cred

cred(
    key: str,
    value: str | None = None,
    ctx: Annotated[AppContext, Parameter(parse=False, show=False)],
) → None

Set a single credential leaf.

Parameters

key
type: str

Exact dotted leaf key.

value
type: str | None = None

Credential value. Omit for interactive prompt or stdin.

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

Replace all credential leaves under a path (full replace).

Parameters

path
type: str

Dotted path prefix to replace under.

json_str
type: str | None = None

Inline JSON object to write.

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

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