Skip to content

Example

🛈 DocStrings

An example command usage with description.

Source code in src/clinspector/help_providers/base.py
@dataclasses.dataclass
class Example:
    """An example command usage with description."""

    description: str
    """Description of what the example does."""
    command: str
    """The actual command with placeholders."""
    placeholders: dict[str, str]
    """Mapping of placeholder names to descriptions."""

command instance-attribute

command: str

The actual command with placeholders.

description instance-attribute

description: str

Description of what the example does.

placeholders instance-attribute

placeholders: dict[str, str]

Mapping of placeholder names to descriptions.

:fa-brands-github: Show source on GitHub