tfwrite

package
v0.9.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteModuleVersion

func WriteModuleVersion(filePath, moduleName, newVersion string) error

WriteModuleVersion updates the version attribute of a module block in a .tf file.

func WriteProviderVersion

func WriteProviderVersion(filePath, providerName, newConstraint string) error

WriteProviderVersion updates the version constraint in a required_providers block. Since hclwrite doesn't support nested object manipulation directly, we use token-level string replacement within the provider attribute.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL