I am using inquirer in JavaScript. My idea is to put a layer on top of it using chain of responsibility pattern inspired from express middleware next function, in order to make