Skip to content

CommandHelp

🛈 DocStrings

Help information for a command.

Source code in src/clinspector/help_providers/base.py
@dataclasses.dataclass
class CommandHelp:
    """Help information for a command."""

    name: str
    """The command name."""
    description: str
    """A description of what the command does."""
    examples: list[Example]
    """Usage examples."""
    platform: str = ""
    """Platform this help is for (linux, osx etc)."""
    language: str = "en"
    """Language of the help text."""

description instance-attribute

description: str

A description of what the command does.

examples instance-attribute

examples: list[Example]

Usage examples.

language class-attribute instance-attribute

language: str = 'en'

Language of the help text.

name instance-attribute

name: str

The command name.

platform class-attribute instance-attribute

platform: str = ''

Platform this help is for (linux, osx etc).

:fa-brands-github: Show source on GitHub