feat: sort templates by name

This commit is contained in:
Lea Anthony
2019-07-01 18:26:24 +10:00
parent a2ac8af882
commit 65a8a1e1f7

View File

@@ -191,6 +191,8 @@ func (po *ProjectOptions) PromptForInputs() error {
templateIndex := 0
options.Sort()
if len(options.AsSlice()) > 1 {
templateIndex = PromptSelection("Please select a template", options.AsSlice(), 0)
}