private async Task <bool> Compile(string path, Configuration config) { var stopwatch = Stopwatch.StartNew(); WriteCompileStartedMessage(); var schemaFiles = new HashSet <string>(); ClientGenerator generator = ClientGenerator.New(); generator.SetOutput(IOPath.Combine(path, "Generated")); if (!string.IsNullOrEmpty(config.ClientName)) { generator.SetClientName(config.ClientName); } var errors = new List <HCError>(); await LoadGraphQLDocumentsAsync(path, generator, errors); if (errors.Count > 0) { WriteErrors(errors); return(false); } bool result = await Compile(path, config, generator); WriteCompileCompletedMessage(path, stopwatch); return(result); }