Skip to content

Commit

Permalink
Fix directory name
Browse files Browse the repository at this point in the history
  • Loading branch information
majori committed Nov 30, 2023
1 parent f71c0bc commit b5b1eb3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/docs/templates/schema.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
| `version` | `string` | | Version of the recipe. Must be valid [semver](https://semver.org/). |
| `description` | `string` | | Description of what the recipe does |
| `sources` | `[]string` | | A list of URLs to source code for this recipe. |
| `templateExtension` | `string` | | Extension of files in `sources` that are considered templates and are processed with the template engine. Must start with a period if not empty. |
| `templateExtension` | `string` | | File extension of files in "templates" directory which should be templated. Files not matched by this extension will be copied as-is. If left empty (the default), all files will be templated. |
| `initHelp` | `string` | | A message which will be showed to an user after a succesful recipe execution. Can be used to guide the user what should be done next in the project directory. |
| `ignorePatterns` | `[]string` | | Glob patterns for ignoring generated files from future recipe upgrades. Ignored files will not be regenerated even if their templates change in future versions of the recipe. |
| `vars` | [`[]Variable`](#variable) | | An array of variables which can be used in templates. The user will be prompted to provide the value for the variable if not predefined with `--set` flag. |
Expand Down
6 changes: 3 additions & 3 deletions pkg/recipe/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ type Metadata struct {
// of the recipe.
IgnorePatterns []string `yaml:"ignorePatterns,omitempty"`

// File extension for which files in Sources should be templated. Files not matched by
// this extension will be copied as-is. If empty (the default) all files will be
// templated.
// File extension of files in "templates" directory which should be templated.
// Files not matched by this extension will be copied as-is.
// If left empty (the default), all files will be templated.
TemplateExtension string `yaml:"templateExtension,omitempty"`
}

Expand Down

0 comments on commit b5b1eb3

Please sign in to comment.