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

liquibase.util.HelpUtil Maven / Gradle / Ivy

The newest version!
package liquibase.util;

import liquibase.command.CommandDefinition;

public class HelpUtil {

    public static final String HISTORY_URL = "https://docs.liquibase.com/DATABASECHANGELOGHISTORY";
    /**
     * 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