Search in sources :

Example 1 with GroupHandler

use of com.bakdata.conquery.handler.GroupHandler in project conquery by bakdata.

the class AutoDoc method start.

public void start(File docs) throws IOException {
    docs.mkdirs();
    for (Group group : GROUPS) {
        File target = new File(docs, group.getName() + ".md");
        try (var out = new SimpleWriter(Out.file(target).withUTF8().asWriter())) {
            new GroupHandler(scan, group, out, docs.getCanonicalFile().getParentFile()).handle();
        }
        log.info("Written file {}", target.getCanonicalPath());
    }
}
Also used : Group(com.bakdata.conquery.model.Group) SimpleWriter(com.bakdata.conquery.handler.SimpleWriter) GroupHandler(com.bakdata.conquery.handler.GroupHandler) File(java.io.File)

Aggregations

GroupHandler (com.bakdata.conquery.handler.GroupHandler)1 SimpleWriter (com.bakdata.conquery.handler.SimpleWriter)1 Group (com.bakdata.conquery.model.Group)1 File (java.io.File)1