All Downloads are FREE. Search and download functionalities are using the official Maven repository.

liquibase.util.HelpUtil Maven / Gradle / Ivy

There is a newer version: 4.30.0
Show newest version
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);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy