Skip to content

API Reference parrot.knowledge.wiki.lazy_commands

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.knowledge.wiki.lazy_commands

View source

Lazy Click command registration that preserves the real command contract.

Class LazyAdrGroup

Backward-compatible ADR proxy with the existing constructor surface.

Parameter Type Default Description
*args object ()
**kwargs object {}

Class LazyGroup

Load a real Click command only when its own command tree is used.

Parameter Type Default Description
*args object ()
import_path str
attr str
**kwargs object {}

Method LazyGroup.make_context

Parse actual options, including standalone command options.

make_context(info_name: str | None, args: list[str], parent: click.Context | None = None, **extra: object) -> click.Context

Parameter Type Default Description
info_name str | None
args list[str]
parent click.Context | None None
**extra object {}

Returns: click.Context

Method LazyGroup.invoke

Invoke the real command after lazy context construction.

invoke(ctx: click.Context) -> object

Parameter Type Default Description
ctx click.Context

Returns: object

Method LazyGroup.get_command

Delegate child resolution when the selected command is a group.

get_command(ctx: click.Context, cmd_name: str) -> click.Command | None

Parameter Type Default Description
ctx click.Context
cmd_name str

Returns: click.Command | None

Method LazyGroup.list_commands

List child commands only when the selected command is a group.

list_commands(ctx: click.Context) -> list[str]

Parameter Type Default Description
ctx click.Context

Returns: list[str]

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally