use of org.walkmod.WalkModFacade in project walkmod-core by walkmod.
the class AddCfgProviderCommand method execute.
@Override
public void execute() throws Exception {
if (help) {
command.usage("add-provider");
} else {
WalkModFacade facade = new WalkModFacade(OptionsBuilder.options().printErrors(printErrors));
facade.addProviderConfig(build(), recursive);
}
}
use of org.walkmod.WalkModFacade in project walkmod-core by walkmod.
the class AddParamCommand method execute.
@Override
public void execute() throws Exception {
if (help) {
command.usage("add-param");
} else {
WalkModFacade facade = new WalkModFacade(OptionsBuilder.options().printErrors(printErrors));
facade.addConfigurationParameter(param, value, type, category, name, chain, recursive);
}
}
use of org.walkmod.WalkModFacade in project walkmod-core by walkmod.
the class AddPluginCommand method execute.
@Override
public void execute() throws Exception {
if (help) {
command.usage("add-plugin");
} else {
List<PluginConfig> list = build();
for (PluginConfig pc : list) {
WalkModFacade facade = new WalkModFacade(OptionsBuilder.options().printErrors(printErrors));
facade.addPluginConfig(pc, recursive);
}
}
}
use of org.walkmod.WalkModFacade in project walkmod-core by walkmod.
the class ApplyCommand method execute.
@Override
public void execute() throws Exception {
if (isHelpNeeded()) {
command.usage("apply");
} else {
WalkModFacade facade = new WalkModFacade(buildOptions());
String[] params = new String[getParameters().size()];
if (params.length == 0) {
facade.apply();
} else {
facade.apply(getParameters().toArray(params));
}
}
}
use of org.walkmod.WalkModFacade in project walkmod-core by walkmod.
the class CheckCommand method execute.
@Override
public void execute() throws Exception {
if (isHelpNeeded()) {
command.usage("check");
} else {
WalkModFacade facade = new WalkModFacade(buildOptions());
String[] params = new String[getParameters().size()];
if (params.length == 0) {
facade.check();
} else {
facade.check(getParameters().toArray(params));
}
}
}
Aggregations