def _GetClientLibCallback(args, client_func=GetClientLib):
 (service_class_names, doc_format, language, output_path, hostname) = (args.service, args.format, args.language, args.output, args.hostname)
 (discovery_paths, client_paths) = client_func(service_class_names, doc_format, language, output_path, hostname=hostname)
 for discovery_path in discovery_paths:
  print ('API discovery document written to %s' % discovery_path)
 for client_path in client_paths:
  print ('API client library written to %s' % client_path)

def _GetClientLibCallback ( args , client_func = GetClientLib ) : ( service_class_names , doc_format , language , output_path , hostname ) = ( args . service , args . format , args . language , args . output , args . hostname ) ( discovery_paths , client_paths ) = client_func ( service_class_names , doc_format , language , output_path , hostname = hostname ) for discovery_path in discovery_paths : print ( 'API discovery document written to %s' % discovery_path ) for client_path in client_paths : print ( 'API client library written to %s' % client_path )
generate discovery docs and client libraries to files .