From 65a8a1e1f76a0158f90e7ebc348467f9cc9a1f25 Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Mon, 1 Jul 2019 18:26:24 +1000 Subject: [PATCH] feat: sort templates by name --- cmd/project.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/project.go b/cmd/project.go index 0be7b468..6baa1fd8 100644 --- a/cmd/project.go +++ b/cmd/project.go @@ -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) }