hclvalidate

package
v0.71.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package hclvalidate provides the `hclvalidate` command for Terragrunt.

`hclvalidate` command recursively looks for hcl files in the directory tree starting at workingDir, and validates them based on the language style guides provided by Hashicorp. This is done using the official hcl2 library.

Index

Constants

View Source
const (
	CommandName = "hclvalidate"

	ShowConfigPathFlagName = "terragrunt-hclvalidate-show-config-path"
	ShowConfigPathEnvName  = "TERRAGRUNT_HCLVALIDATE_SHOW_CONFIG_PATH"

	JSONOutputFlagName = "terragrunt-hclvalidate-json"
	JSONOutputEnvName  = "TERRAGRUNT_HCLVALIDATE_JSON"
)

Variables

This section is empty.

Functions

func NewCommand

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

func NewFlags

func NewFlags(opts *Options) cli.Flags

func Run

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

Types

type Options

type Options struct {
	*options.TerragruntOptions

	ShowConfigPath bool
	JSONOutput     bool
}

func NewOptions

func NewOptions(general *options.TerragruntOptions) *Options

Jump to

Keyboard shortcuts

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