handler method
Este metodo debe contener la logica inicial de los Features
Implementation
@override
void handler(List<String> param) {
final readParams = readParamsFeature.handler(param);
final moduler = readConfigFileFeature.handler(readParams);
final module = moduler.modules.optionalSingle<Module>(
(element) => element.name == readParams.moduleName,
);
if (module == null) {
throw FlowException(
'El modulo ${readParams.moduleName} no se encontro en ${readParams.personalizedConfigPath}',
);
}
final instructions = buildStructureFeature.handler(
module,
readParams.featureName,
);
writeStructures(
structures: instructions,
prefixPath: moduler.prefixStructure,
).then((dynamic value) {
print('La estructura ha sido creada correctamente');
});
}