com.dslplatform.compiler.client.parameters.Force Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dsl-clc Show documentation
Show all versions of dsl-clc Show documentation
Command line client for interaction with DSL Platform compiler (https://dsl-platform.com)
The newest version!
package com.dslplatform.compiler.client.parameters;
import com.dslplatform.compiler.client.CompileParameter;
import com.dslplatform.compiler.client.Context;
public enum Force implements CompileParameter {
INSTANCE;
@Override
public String getAlias() {
return "force";
}
@Override
public String getUsage() {
return null;
}
@Override
public boolean check(final Context context) {
return true;
}
@Override
public void run(final Context context) {
}
@Override
public String getShortDescription() {
return "Should unsafe operations (such as destructive migrations) be applied without prompt?";
}
@Override
public String getDetailedDescription() {
return "If destructive database migration is detected (one which can't be reverted, such as dropping of a column, table or schema),\n" +
"special confirmation is required for automatic application of database changes with the apply command.\n" +
"\n" +
"This option can also be used to create a new database if one doesn't exist or to avoid asking for create folder confirmation.";
}
}