def _process_command(self, class_to_call, switches_and_data): if class_to_call: if self.debug_mode is False: try: class_name = getattr(sys.modules[__name__], class_to_call) class_name(switches_and_data, self) except AttributeError: cv.show_output("The command '{}' is not valid. Enter" " 'Help' for a list of commands" "".format(class_to_call)) else: class_name = getattr(sys.modules[__name__], class_to_call) class_name(switches_and_data, self)
def _greet_user(self): # Graham cv.show_output("Welcome " + self.user_name)