askQuestion method
Implementation
Map<String, String> askQuestion() {
const listQuestions = [
[
{
'question': "What's layer that your want generate?",
'options': ['domain', 'infra', 'external', 'ui', 'complete']
},
'layer'
]
];
const questions = [
["What's your path?", 'path']
];
final dialog = CLI_Dialog(
questions: questions,
listQuestions: listQuestions,
order: ['layer', 'path'],
);
final anwers = dialog.ask();
final result = <String, String>{
'layer': anwers['layer'] as String,
'path': anwers['path'] as String,
};
return result;
}