You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generate: Use rendered provider name instead of provider name in default templates (#492)
* Update the default provider, resource, and function templates to use `.RenderedProviderName` instead of `.ProviderName`
* Update Readme
* Update Readme
* Add changelog entries
* Fix tests
* Sort schema keys when generating missing templates to ensure deterministic stdout.
body: 'generate: The `.ProviderShortName` template function now uses the rendered provider name to derive the provider short name. Users that pass in the
3
+
`--rendered-provider-name` flag might see a different output for this function'
--provider-dir <ARG> relative or absolute path to the root provider code directory when running the command outside the root provider code directory
69
69
--provider-name <ARG> provider name, as used in Terraform configurations; defaults to the --provider-dir short name (after removing `terraform-provider-` prefix)
70
70
--providers-schema <ARG> path to the providers schema JSON file, which contains the output of the terraform providers schema -json command. Setting this flag will skip building the provider and calling Terraform CLI
71
-
--rendered-provider-name <ARG> provider name, as generated in documentation (ex. page titles, ...)
71
+
--rendered-provider-name <ARG> provider name, as generated in documentation (ex. page titles, ...); defaults to the --provider-name
72
72
--rendered-website-dir <ARG> output directory based on provider-dir (default: "docs")
73
73
--tf-version <ARG> terraform binary version to download. If not provided, will look for a terraform binary in the local environment. If not found in the environment, will download the latest version of Terraform
74
74
--website-source-dir <ARG> templates directory based on provider-dir (default: "templates")
@@ -286,7 +286,7 @@ using the following data fields and functions:
286
286
| `.HasExample` | bool | Is there an example file? |
287
287
| `.ExampleFile` | string | Path to the file with the terraform configuration example |
0 commit comments