TheHipbot / hermes

Code Repository Manager
Apache License 2.0
4 stars 1 forks source link

Clean up Prompt Package to Expose Only the Factory and Prompt Interfaces #23

Open TheHipbot opened 5 years ago

TheHipbot commented 5 years ago

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.