Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Generate: Use rendered provider name instead of provider name in default templates#492

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
SBGoods merged 7 commits intomainfromSBGoods/rendered-provider-name
Jun 16, 2025

Conversation

@SBGoods
Copy link
Contributor

Related Issue

Fixes#177

Description

The--rendered-provider-name flag is an optional flag for thegenerate command to provide an alternative provider name for rendering templates. Currently, this rendered provider name is not used in any of the default templates and is only used to supply a value to the.RenderedProviderName template function.

This PR replaces all uses of.ProviderName in the default templates with.RenderedProviderName. Since the rendered provider name defaults to the provider name, this change should have no regressions for existing users who are not using the--rendered-provider-name flag.

Also, the.ProviderShortName function which is used in the default provider template, will now use the rendered provider name as a basis to generate the short name instead of the provider name.

Given the following CLI input:

tfplugindocs --provider-name=terraform-provider-scaffolding --providers-schema=schema.json --rendered-provider-name=Scaffolding

.ProviderShortName should now returnScaffolding (derived from--rendered-provider-name) instead ofscaffolding (derived from--provider-name).

Rollback Plan

  • If a change needs to be reverted, we will roll out an update to the code within 7 days.

Changes to Security Controls

Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.

stevehipwell reacted with thumbs up emoji
@SBGoodsSBGoods requested a review froma team as acode ownerJune 13, 2025 17:45
ansgarm
ansgarm previously approved these changesJun 16, 2025
@SBGoodsSBGoods merged commit0367702 intomainJun 16, 2025
6 checks passed
@SBGoodsSBGoods deleted the SBGoods/rendered-provider-name branchJune 16, 2025 19:14
@github-actionsgithub-actionsbot locked asresolvedand limited conversation to collaboratorsJul 17, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@austinvalleaustinvalleaustinvalle approved these changes

@ansgarmansgarmansgarm left review comments

Assignees

No one assigned

Labels

command/generateenhancementNew feature or request

Projects

None yet

Milestone

v0.22.0

Development

Successfully merging this pull request may close these issues.

--rendered-provider-name doesn't work

3 participants

@SBGoods@ansgarm@austinvalle

[8]ページ先頭

©2009-2025 Movatter.jp