Source code for pi_portal.modules.integrations.slack.cli.commands.command_help
"""Slack CLI Help command."""
from .bases.command import SlackCommandBase
[docs]class HelpCommand(SlackCommandBase):
"""Slack CLI command to list the available commands.
:param bot: The configured slack bot in use.
"""
[docs] def invoke(self) -> None:
"""Send a list of available CLI commands."""
self.slack_bot.slack_client.send_message(
f"Available Commands: {', '.join(self.slack_bot.command_list)}"
)