def run(self, arguments=False, menu=None, action=None, replaceMenu=None):
        if not Settings.ready():
            if self.ready_retry > 2:
                sublime.message_dialog(
                    "Terminality is starting up..." +
                    "Please wait a few seconds and try again."
                )
            else:
                sublime.status_message(
                    "Terminality is starting up..." +
                    "Please wait a few seconds and try again..."
                )
            self.ready_retry += 1
            return
        if self.qm is None:
            self.qm = QuickMenu()
        if replaceMenu is not None:
            self.qm.setMenu(replaceMenu["name"], replaceMenu["menu"])
            return
        menu = self.generate_menu(arguments)
        if menu is None:
            return
        self.qm.setMenu("main", menu)
        self.qm.show(window=self.window, menu=menu, action=action)
Show menu to user, if ready
dataset/ETHPy150Open spywhere/Terminality/terminality.py/TerminalityCommand.run