Get help text for all available commands. Returns: Formatted help text.
()
| 257 | |
| 258 | @staticmethod |
| 259 | def get_help() -> str: |
| 260 | """ |
| 261 | Get help text for all available commands. |
| 262 | |
| 263 | Returns: |
| 264 | Formatted help text. |
| 265 | """ |
| 266 | lines = ["Available commands:", ""] |
| 267 | |
| 268 | for cmd in registry.list_commands(mode=CommandMode.INTERACTIVE): |
| 269 | lines.append(f" {cmd.name:<15} {cmd.description}") |
| 270 | if cmd.aliases: |
| 271 | lines.append(f" Aliases: {', '.join(cmd.aliases)}") |
| 272 | |
| 273 | lines.append("") |
| 274 | lines.append("Type 'help <command>' for detailed help on a specific command.") |
| 275 | |
| 276 | return "\n".join(lines) |
| 277 | |
| 278 | @staticmethod |
| 279 | def get_command_help(command_name: str) -> str: |