2020-08-24 11:10:01 +02:00
|
|
|
package com.plannaplan;
|
|
|
|
|
2020-12-05 16:28:02 +01:00
|
|
|
import java.time.LocalDateTime;
|
|
|
|
import java.time.format.DateTimeFormatter;
|
|
|
|
|
2020-08-24 11:10:01 +02:00
|
|
|
public class Logo {
|
|
|
|
|
|
|
|
public static final String ANSI_RESET = "\u001B[0m";
|
|
|
|
public static final String ANSI_YELLOW = "\u001B[33m";
|
|
|
|
public static final String ANSI_BLUE = "\u001B[34m";
|
2020-12-05 16:28:02 +01:00
|
|
|
public static final String ANSI_BLACK = "\u001B[37m";
|
2020-08-24 11:10:01 +02:00
|
|
|
private String version;
|
|
|
|
|
|
|
|
public Logo(String version){
|
|
|
|
this.version = version;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getLogo(){
|
|
|
|
String result = ANSI_YELLOW +
|
|
|
|
" .,,,,, \n"+
|
|
|
|
" .,,,,,,,,,,,,, \n" +
|
|
|
|
" .,,,,,,,,,,,,,,,,,,,,, \n" +
|
|
|
|
" .,,,,,,,(,,,,,,,,,,,,,,,,,,,,, \n" +
|
|
|
|
" ,,,,,,,(,,,,,,,,,,,,,,,,,,,,,,,,,,,,. \n" +
|
|
|
|
" ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,. " + ANSI_RESET + " _ _ \n"+
|
|
|
|
" * " + ANSI_YELLOW +",,,,,,,,,,,,,,,,,,,,. " + ANSI_RESET + " | | | | \n" +
|
|
|
|
" * " + ANSI_BLUE + "%%%. " + ANSI_YELLOW +",,,,,,,,,,,,. "+ ANSI_BLUE+"(%%# " + ANSI_RESET + " _ __ | | __ _ _ __ _ __ __ _ _ __ | | __ _ _ __ \n" +
|
|
|
|
" * " + ANSI_BLUE + "%%%%%%%. " + ANSI_YELLOW + ",,,,. "+ ANSI_BLUE +"#%%%%%%# " + ANSI_RESET + "| '_ \\| |/ _` | '_ \\| '_ \\ / _` | '_ \\| |/ _` | '_ \\ \n" +
|
|
|
|
" * " + ANSI_BLUE +"%%%%%%%%%%%#%%%%%%%%%%# " + ANSI_RESET + "| |_) | | (_| | | | | | | | (_| | |_) | | (_| | | | |\n" +
|
|
|
|
" * " + ANSI_BLUE +"/%%%%%%%%%%%%%%%%%%% " + ANSI_RESET + "| .__/|_|\\__,_|_| |_|_| |_|\\__,_| .__/|_|\\__,_|_| |_|\n" +
|
|
|
|
" ( / " + ANSI_BLUE +"#%%%%%%%%%%%. " + ANSI_RESET + "| | | | "+ ANSI_BLUE +"(" +this.version + ")" +"\n" + ANSI_BLUE +
|
|
|
|
" %%%%/ " + ANSI_RESET + "|_| |_| \n" +
|
|
|
|
ANSI_RESET;
|
|
|
|
return result;
|
|
|
|
}
|
2020-12-05 16:28:02 +01:00
|
|
|
|
|
|
|
|
|
|
|
public static String getInitInfo(boolean isDev){
|
|
|
|
DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss.SSS");
|
|
|
|
LocalDateTime now = LocalDateTime.now();
|
|
|
|
|
|
|
|
if(isDev){
|
|
|
|
return ANSI_BLACK + dtf.format(now) + ANSI_YELLOW + " plannaplan" + ANSI_RESET + " initializing [" +ANSI_BLUE + "dev" + ANSI_RESET +"]";
|
|
|
|
}
|
|
|
|
return ANSI_BLACK + dtf.format(now) + ANSI_YELLOW + " plannaplan" + ANSI_RESET + " initializing [" +ANSI_BLUE + "prod" + ANSI_RESET +"]";
|
|
|
|
}
|
|
|
|
|
|
|
|
public static String getStartedInfo(boolean isDev){
|
|
|
|
DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss.SSS");
|
|
|
|
LocalDateTime now = LocalDateTime.now();
|
|
|
|
|
|
|
|
if(isDev){
|
|
|
|
return ANSI_BLACK + dtf.format(now) +ANSI_YELLOW + " plannaplan" + ANSI_RESET + " started [" +ANSI_BLUE + "dev" + ANSI_RESET +"]";
|
|
|
|
}
|
|
|
|
return ANSI_BLACK + dtf.format(now) + ANSI_YELLOW + " plannaplan" + ANSI_RESET + " started [" +ANSI_BLUE + "prod" + ANSI_RESET +"]";
|
|
|
|
}
|
2020-08-24 11:10:01 +02:00
|
|
|
}
|