Skip to content

HelpProvider

Sub classes

Name Children Inherits
ManPageProvider
clinspector.help_providers.man_pages
Provider for man pages via man-api.ch.
    TldrProvider
    clinspector.help_providers.tldr_pages
    Provider for tldr-pages help.

      Base classes

      Name Children Inherits
      Protocol
      typing
      Base class for protocol classes.

      ⋔ Inheritance diagram

      graph TD
        1550573299["base.HelpProvider"]
        1073422405["typing.Protocol"]
        3481597255["typing.Generic"]
        2751680898["builtins.object"]
        1073422405 --> 1550573299
        3481597255 --> 1073422405
        2751680898 --> 3481597255

      🛈 DocStrings

      Bases: Protocol

      Protocol for CLI help providers.

      Source code in src/clinspector/help_providers/base.py
      class HelpProvider(Protocol):
          """Protocol for CLI help providers."""
      
          async def get_command_help(self, command: str) -> CommandHelp:
              """Get help information for a command."""
              ...
      
          async def search_commands(self, query: str) -> list[str]:
              """Search for commands matching query."""
              ...
      
          async def list_commands(self) -> list[str]:
              """List all available commands."""
              ...
      

      get_command_help async

      get_command_help(command: str) -> CommandHelp
      

      Get help information for a command.

      Source code in src/clinspector/help_providers/base.py
      async def get_command_help(self, command: str) -> CommandHelp:
          """Get help information for a command."""
          ...
      

      list_commands async

      list_commands() -> list[str]
      

      List all available commands.

      Source code in src/clinspector/help_providers/base.py
      async def list_commands(self) -> list[str]:
          """List all available commands."""
          ...
      

      search_commands async

      search_commands(query: str) -> list[str]
      

      Search for commands matching query.

      Source code in src/clinspector/help_providers/base.py
      async def search_commands(self, query: str) -> list[str]:
          """Search for commands matching query."""
          ...
      

      :fa-brands-github: Show source on GitHub