Class VersionCommandExtension

java.lang.Object
org.flywaydb.commandline.command.version.VersionCommandExtension
All Implemented Interfaces:
Comparable<org.flywaydb.core.extensibility.Plugin>, org.flywaydb.core.extensibility.CommandExtension, org.flywaydb.core.extensibility.Plugin, org.flywaydb.core.extensibility.PluginMetadata

public class VersionCommandExtension extends Object implements org.flywaydb.core.extensibility.CommandExtension
  • Field Details

  • Constructor Details

    • VersionCommandExtension

      public VersionCommandExtension()
  • Method Details

    • handlesCommand

      public boolean handlesCommand(String command)
      Specified by:
      handlesCommand in interface org.flywaydb.core.extensibility.CommandExtension
    • getCommandForFlag

      public String getCommandForFlag(String flag)
      Specified by:
      getCommandForFlag in interface org.flywaydb.core.extensibility.CommandExtension
    • handlesParameter

      public boolean handlesParameter(String parameter)
      Specified by:
      handlesParameter in interface org.flywaydb.core.extensibility.CommandExtension
    • handle

      public org.flywaydb.core.api.output.OperationResult handle(String command, org.flywaydb.core.api.configuration.Configuration config, List<String> flags, org.flywaydb.core.FlywayTelemetryManager flywayTelemetryManager) throws org.flywaydb.core.api.FlywayException
      Specified by:
      handle in interface org.flywaydb.core.extensibility.CommandExtension
      Throws:
      org.flywaydb.core.api.FlywayException
    • getUsage

      public List<org.flywaydb.core.internal.util.Pair<String,String>> getUsage()
      Specified by:
      getUsage in interface org.flywaydb.core.extensibility.PluginMetadata