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

io.mongock.cli.util.banner.Banner Maven / Gradle / Ivy

There is a newer version: 5.0.41
Show newest version
package io.mongock.cli.util.banner;

import com.diogonunes.jcolor.Attribute;

import java.io.PrintStream;

import static com.diogonunes.jcolor.Ansi.colorize;

public final class Banner {

	private static boolean active = true;

	private Banner() {
	}

	public static boolean isActive() {
		return active;
	}

	public static void setActive(boolean active) {
		Banner.active = active;
	}

	private static final String banner =
			"   \\  |                                |   \n" +
					"  |\\/ |   _ \\    \\    _` |   _ \\   _|  | / \n" +
					" _|  _| \\___/ _| _| \\__, | \\___/ \\__| _\\_\\ \n" +
					"                    ____/                  ";


	public static void print(PrintStream out) {
		if(active)out.println(colorize(banner, Attribute.CYAN_TEXT()));
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy