Class VersionProvider

  • All Implemented Interfaces:
    picocli.CommandLine.IVersionProvider

    public class VersionProvider
    extends Object
    implements picocli.CommandLine.IVersionProvider
    Provides version information by reading a hardcoded resource file.
    • Constructor Detail

      • VersionProvider

        public VersionProvider()
    • Method Detail

      • get

        public static final String get()
        Read the version file, returning an empty string upon error.
      • getVersion

        public String[] getVersion()
                            throws Exception
        Specified by:
        getVersion in interface picocli.CommandLine.IVersionProvider
        Throws:
        Exception