genProject function
Implementation
void genProject(String gen, String projectPath) {
if (gen == '--genall') {
genDir(projectPath);
genDoc(projectPath);
genLib(gen, projectPath);
genTest(projectPath, ednetCoreModel);
// genWeb(projectPath);
final gitignore = genFile('${projectPath}/.gitignore');
genGitignore(gitignore);
final readme = genFile('${projectPath}/README.md');
genReadme(readme);
final pubspec = genFile('${projectPath}/pubspec.yaml');
genPubspec(pubspec);
} else if (gen == '--gengen') {
genLib(gen, projectPath);
} else {
print('valid gen argument is either --genall or --gengen');
}
}