All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.jy2.commandline.picocli.log.LogClearCommand Maven / Gradle / Ivy

There is a newer version: 0.0.39
Show newest version
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