com.xlrit.gears.runner.driver.EvalDriver Maven / Gradle / Ivy
The newest version!
package com.xlrit.gears.runner.driver;
import com.xlrit.gears.runner.graphql.GraphQLClient;
import com.xlrit.gears.runner.graphql.Operation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class EvalDriver extends AbstractDriver {
private static final Logger LOG = LoggerFactory.getLogger(EvalDriver.class);
@Override
public int run(Config config) {
GraphQLClient client = getClient(config);
LOG.info("Evaluating {}", config.filePattern);
LOG.info("{}", client.invoke(Operation.evaluate(config.filePattern)).get("evaluate"));
return 0;
}
}