render

package
v0.77.22 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package render provides the command to render the final terragrunt config in various formats.

Package render provides the command to render the final terragrunt config in various formats.

Index

Constants

View Source
const (
	CommandName = "render"

	FormatFlagName                  = "format"
	JSONFlagName                    = "json"
	WriteFlagName                   = "write"
	WriteAliasFlagName              = "w"
	OutFlagName                     = "out"
	WithMetadataFlagName            = "with-metadata"
	DisableDependentModulesFlagName = "disable-dependent-modules"
)
View Source
const (
	// FormatHCL outputs the config in HCL format.
	FormatHCL = "hcl"

	// FormatJSON outputs the config in JSON format.
	FormatJSON = "json"
)

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(opts *options.TerragruntOptions) *cli.Command

func NewFlags

func NewFlags(opts *Options, prefix flags.Prefix) cli.Flags

func Run

func Run(ctx context.Context, opts *Options) error

Types

type Options

type Options struct {
	*options.TerragruntOptions

	// Format determines the format of the output.
	Format string

	// OutputPath is the path to the file to write the rendered config to.
	// This configuration is relative to the Terragrunt config path.
	OutputPath string

	// Write the rendered config to a file.
	Write bool

	// RenderMetadata adds metadata to the rendered config.
	RenderMetadata bool

	// DisableDependentModules disables the identification of dependent modules when rendering config.
	DisableDependentModules bool
}

func NewOptions

func NewOptions(opts *options.TerragruntOptions) *Options

func (*Options) Clone

func (o *Options) Clone() *Options

func (*Options) Validate

func (o *Options) Validate() error

Jump to

Keyboard shortcuts

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