liquibase.util.HelpUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of liquibase-core Show documentation
Show all versions of liquibase-core Show documentation
Liquibase is a tool for managing and executing database changes.
package liquibase.util;
import liquibase.command.CommandDefinition;
public class HelpUtil {
/**
* Hides the command name when running liquibase --help
* @param commandDefinition the command definition to adjust
*/
public static void hideCommandNameInHelpView(CommandDefinition commandDefinition) {
if (commandDefinition.getPipeline().size() == 1) {
commandDefinition.setInternal(true);
}
}
}