codegenStep function
Prompts for code generation options.
Implementation
Future<CodegenConfig> codegenStep() async {
final options = ['Freezed (immutable models)', 'json_serializable (JSON <-> Dart)'];
final selected = MultiSelect(
prompt: 'Code generation (space to select, enter to confirm)',
options: options,
defaults: [false, false],
).interact();
return CodegenConfig(
freezed: selected.contains(0),
jsonSerializable: selected.contains(1),
);
}