bastools/tools/st/src/main/java/io/github/applecommander/bastools/tools/st/VersionProvider.java

17 lines
775 B
Java

package io.github.applecommander.bastools.tools.st;
import io.github.applecommander.applesingle.AppleSingle;
import io.github.applecommander.bastools.api.BasTools;
import picocli.CommandLine.IVersionProvider;
/** Display version information. Note that this is dependent on the Spring Boot Gradle plugin configuration. */
public class VersionProvider implements IVersionProvider {
public String[] getVersion() {
return new String[] {
String.format("%s: %s", Main.class.getPackage().getImplementationTitle(),
Main.class.getPackage().getImplementationVersion()),
String.format("%s: %s", BasTools.TITLE, BasTools.VERSION),
String.format("AppleSingle API: %s", AppleSingle.VERSION)
};
}
}