private static SchemaExport.Action getAction(final boolean dropSchema, final boolean createSchema) {
        if (createSchema && dropSchema) {
            return SchemaExport.Action.BOTH;
        }
        if (createSchema) {
            return SchemaExport.Action.CREATE;
        }
        if (dropSchema) {
            return SchemaExport.Action.DROP;
        }
        return SchemaExport.Action.NONE;
    }
This is {@link GenerateDdlCommand}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-shell-core/src/main/java/org/apereo/cas/shell/commands/db/GenerateDdlCommand.java