code: def main(cls):
          
          args = cls.parse_args()
  
          if args.focus:
              Focus.init()
          else:
              Focus.disable()
  
          logging.basicConfig(format='[Laniakea] %(asctime)s %(levelname)s: %(message)s',
                              level=args.verbosity * 10,
                              datefmt='%Y-%m-%d %H:%M:%S')
  
          # Laniakea base configuration
          logger.info('Loading Laniakea configuration from %s', Focus.data(args.settings.name))
          try:
              settings = json.loads(args.settings.read())
          except ValueError as msg:
              logger.error('Unable to parse %s: %s', args.settings.name, msg)
              return 1
  
          # UserData
          userdata = ''
  
          if args.userdata:
              logger.info('Reading user data script content from %s', Focus.info(args.userdata.name))
              try:
                  userdata = UserData.handle_import_tags(args.userdata.read(),
                                                         os.path.dirname(args.userdata.name))
              except UserDataException as msg:
                  logging.error(msg)
                  return 1
  
          if args.list_userdata_macros:
              UserData.list_tags(userdata)
              return 0
  
          if args.userdata_macros:
              args.userdata_macros = UserData.convert_pair_to_dict(args.userdata_macros or '')
              userdata = UserData.handle_tags(userdata, args.userdata_macros)
  
          if args.print_userdata:
              logger.info('Combined UserData script:\n%s', userdata)
              return 0
  
          if args.provider:
              provider = getattr(globals()[args.provider], args.provider.title() + 'CommandLine')
              provider().main(args, settings, userdata)
  
          return 0
docs: Main entry point of Laniakea.