Add terminal information when displaying the version

This commit is contained in:
Guillaume Nodet
2020-10-26 14:56:49 +01:00
parent b46d5b915d
commit 64ab26b987
3 changed files with 19 additions and 0 deletions

View File

@@ -15,11 +15,15 @@
*/
package org.jboss.fuse.mvnd.common.logging;
import org.jline.terminal.Terminal;
/**
* A sink for various kinds of events sent by the daemon.
*/
public interface ClientOutput extends AutoCloseable {
Terminal getTerminal();
void startBuild(String name, int projects, int cores);
void projectStateChanged(String projectId, String display);

View File

@@ -117,6 +117,10 @@ public class TerminalOutput implements ClientOutput {
this.reader = r;
}
public Terminal getTerminal() {
return terminal;
}
public void startBuild(String name, int projects, int cores) {
this.name = name;
this.totalProjects = projects;