Class VersionProvider
java.lang.Object
com.github.isuhorukov.log.watcher.VersionProvider
- All Implemented Interfaces:
picocli.CommandLine.IVersionProvider
Provides the version information of the project.
This class implements the CommandLine.IVersionProvider interface to supply
version information for the CLI application. The version information is read from
a version.properties file located in the classpath.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]Retrieves the version information from theversion.propertiesfile.
-
Constructor Details
-
VersionProvider
public VersionProvider()
-
-
Method Details
-
getVersion
Retrieves the version information from theversion.propertiesfile.- Specified by:
getVersionin interfacepicocli.CommandLine.IVersionProvider- Returns:
- an array of strings containing the version information.
- Throws:
Exception- if there is an error reading the version properties file.
-