com.github.jy2.commandline.picocli.log.LogClearCommand Maven / Gradle / Ivy
package com.github.jy2.commandline.picocli.log;
import com.github.jy2.commandline.picocli.Main;
import picocli.CommandLine.Command;
import picocli.CommandLine.ParentCommand;
@Command(name = "clear", description = "Clear aggregated logs")
public class LogClearCommand implements Runnable {
@ParentCommand
LogCommand parent;
public void run() {
Main.logCollector.model.clear();
System.out.println("Cleared aggregated logs");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy