def get_visible_commands(self) -> List[str]:
        """Returns a list of commands that have not been hidden or disabled."""
        commands = self.get_all_commands()

        # Remove the hidden commands
        for name in self.hidden_commands:
            if name in commands:
                commands.remove(name)

        # Remove the disabled commands
        for name in self.disabled_commands:
            if name in commands:
                commands.remove(name)

        return commands
def get_visible_commands ( self ) -> List [ str ] : commands = self . get_all_commands ( ) for name in self . hidden_commands : if name in commands : commands . remove ( name ) for name in self . disabled_commands : if name in commands : commands . remove ( name ) return commands
Returns a list of commands that have not been hidden or disabled.