Skip to content

Commit

Permalink
Make create cmd generate recipe with .tmpl file
Browse files Browse the repository at this point in the history
  • Loading branch information
ilkka committed Oct 13, 2023
1 parent 7f4f0e1 commit 5ef172a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/cli/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func NewCreateCmd() *cobra.Command {
my-recipe
├── %[2]s
├── %[3]s
│ └── README.md
│ └── README.md.tmpl
└── %[4]s
└── defaults
├── %[5]s
Expand Down
2 changes: 1 addition & 1 deletion pkg/recipeutil/examples.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func CreateExampleRecipe(name string) *recipe.Recipe {
{Name: variableName, Default: defaultValue},
}
r.Templates = map[string][]byte{
"README.md": []byte("{{ .Variables.MY_VAR }}"),
"README.md.tmpl": []byte("{{ .Variables.MY_VAR }}"),
}
r.Tests = []recipe.Test{
{
Expand Down

0 comments on commit 5ef172a

Please sign in to comment.