Return a list of help topics.
(self)
| 2757 | return Choices(items=items) |
| 2758 | |
| 2759 | def get_help_topics(self) -> list[str]: |
| 2760 | """Return a list of help topics.""" |
| 2761 | all_topics = [ |
| 2762 | name[len(constants.HELP_FUNC_PREFIX) :] |
| 2763 | for name in self.get_names() |
| 2764 | if name.startswith(constants.HELP_FUNC_PREFIX) and callable(getattr(self, name)) |
| 2765 | ] |
| 2766 | |
| 2767 | # Filter out hidden and disabled commands |
| 2768 | return [topic for topic in all_topics if topic not in self.hidden_commands and topic not in self.disabled_commands] |
| 2769 | |
| 2770 | def sigint_handler( |
| 2771 | self, |