I will introduce a library to build console application with more easier, and with this library, you can make fine interactive methodology on your console application.
You can define queries for user input using this library on your application and later, you able to use the input data in your code.
All queries are managed with YAML file and you can redefine message content of it.
You can manage trigger process by implementing ConsoleTrigger interface and treat user input data on this object.
More detail thing of this library to get, you can have it to visit below GitHub project.
GitHub link: [console-input][https://github.com/9ins/console-input-manager]