code: def interactive(self):
          
          while True:
              line = sys.stdin.readline().strip()
              if line == 'quit':
                  sys.exit()
              elif line == 'validate':
                  self.check_syntax()
                  self.check_imports()
                  self.check_install_json()
                  self.check_layout_json()
                  self.print_json()
  
              # reset validation_data
              self.validation_data = self._validation_data
docs: Run in interactive mode.