Interface CommandLineExtension
-
public interface CommandLineExtension
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetUsage()org.flywaydb.core.api.output.OperationResultBasehandle(java.lang.String verb, java.util.Map<java.lang.String,java.lang.String> config)booleanhandlesParameter(java.lang.String parameter)booleanhandlesVerb(java.lang.String verb)
-
-
-
Method Detail
-
handlesVerb
boolean handlesVerb(java.lang.String verb)
- Parameters:
verb- The CLI verb to check is handled- Returns:
- Whether this extension handles the specified verb
-
handlesParameter
boolean handlesParameter(java.lang.String parameter)
- Parameters:
parameter- The parameter to check is handled- Returns:
- Whether this extension handles the specified parameter
-
getUsage
java.lang.String getUsage()
- Returns:
- The text to inject into 'flyway -help' to indicate how this extension is intended to be used
-
handle
org.flywaydb.core.api.output.OperationResultBase handle(java.lang.String verb, java.util.Map<java.lang.String,java.lang.String> config)- Parameters:
verb- The verb to handleconfig- The configuration provided to Flyway- Returns:
- The result of this verb being handled
-
-