promptProjectName static method
Implementation
static Future<String> promptProjectName() async {
while (true) {
stdout.write('? Project folder name: ');
final input = stdin.readLineSync()?.trim() ?? '';
if (input.isEmpty) {
print('❌ Project name cannot be empty');
continue;
}
if (!_isValidProjectName(input)) {
print('❌ Invalid project name. Use lowercase letters, numbers, and underscores only');
continue;
}
return input;
}
}