The prompt package is doing too much. Functions like CreateDriverSelectPrompt and CreateRepoSelectPrompt should be moved out to where the prompt is needed along with the labels and templates. This will make it more generic and removed the necessity to create yet another function for every prompt. There should also probably be a NewPrompter or NewFactory function exposed so that the user can call the factory directly.
The prompt package is doing too much. Functions like
CreateDriverSelectPrompt
andCreateRepoSelectPrompt
should be moved out to where the prompt is needed along with the labels and templates. This will make it more generic and removed the necessity to create yet another function for every prompt. There should also probably be aNewPrompter
orNewFactory
function exposed so that the user can call the factory directly.