1 2 3 package gov.nist.secauto.metaschema.cli.processor; 4 5 import static org.fusesource.jansi.Ansi.ansi; 6 7 import java.io.PrintStream; 8 9 public class Version implements VersionInfo { 10 11 public static final String VERSION = "2.0.1"; 12 public static final String BUILD_TIMESTAMP = "2024-11-09 21:13"; 13 public static final String COMMIT = "964b845"; 14 15 public Version() { 16 } 17 18 @Override 19 public String getVersion() { 20 return VERSION; 21 } 22 23 @Override 24 public String getBuildTime() { 25 return BUILD_TIMESTAMP; 26 } 27 28 @Override 29 public String getCommit() { 30 return COMMIT; 31 } 32 33 @Override 34 public void generateExtraInfo(PrintStream out) { 35 out.println(ansi() 36 .a("Metaschema version ").bold().a(getVersion()).boldOff() 37 .a(" on commit ").bold().a(getCommit()).boldOff() 38 .a(" built at ").bold().a( getBuildTime()).reset()); 39 } 40 }