Skip to content

Commit e7c8dfd

Browse files
authored
Merge pull request #89 from nitrictech/fix/stack-templates
Fix/stack templates
2 parents ba25d77 + 5e6e190 commit e7c8dfd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/cmd/stack/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ var stackCreateCmd = &cobra.Command{
7171
templateNameQu.Prompt = &survey.Select{
7272
Message: "Choose a template:",
7373
Options: dirs,
74-
Default: "typescript-stack",
74+
Default: "typescript-starter",
7575
}
7676
templateNameQu.Validate = func(ans interface{}) error {
7777
if len(args) < 2 {

pkg/templates/contents.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func (d *downloader) Names() ([]string, error) {
8282

8383
func (d *downloader) Get(name string) *TemplateInfo {
8484
for _, ti := range d.repo {
85-
if ti.Name == name {
85+
if ti.Path == name {
8686
return &ti
8787
}
8888
}

0 commit comments

Comments
 (0)