global

package
v0.73.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package global provides CLI global flags.

Index

Constants

View Source
const (
	LogLevelFlagName        = "log-level"
	LogDisableFlagName      = "log-disable"
	ShowLogAbsPathsFlagName = "log-show-abs-paths"
	LogFormatFlagName       = "log-format"
	LogCustomFormatFlagName = "log-custom-format"
	NoColorFlagName         = "no-color"

	NonInteractiveFlagName = "non-interactive"
	WorkingDirFlagName     = "working-dir"

	StrictModeFlagName    = "strict-mode"
	StrictControlFlagName = "strict-control"

	ExperimentModeFlagName = "experiment-mode"
	ExperimentFlagName     = "experiment"

	HelpFlagName    = "help"
	VersionFlagName = "version"

	DeprecatedLogLevelFlagName        = "log-level"
	DeprecatedLogDisableFlagName      = "log-disable"
	DeprecatedShowLogAbsPathsFlagName = "log-show-abs-paths"
	DeprecatedLogFormatFlagName       = "log-format"
	DeprecatedLogCustomFormatFlagName = "log-custom-format"
	DeprecatedNoColorFlagName         = "no-color"
	DeprecatedNonInteractiveFlagName  = "non-interactive"
	DeprecatedWorkingDirFlagName      = "working-dir"
	DeprecatedStrictModeFlagName      = "strict-mode"
	DeprecatedStrictControlFlagName   = "strict-control"
	DeprecatedExperimentModeFlagName  = "experiment-mode"
	DeprecatedExperimentFlagName      = "experiment"

	DeprecatedDisableLogFormattingFlagName = "disable-log-formatting"
	DeprecatedJSONLogFlagName              = "json-log"
	DeprecatedTfLogJSONFlagName            = "tf-logs-to-json"
)

Variables

This section is empty.

Functions

func HelpAction

func HelpAction(ctx *cli.Context, opts *options.TerragruntOptions) error

func NewFlags

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

NewFlags creates and returns global flags common for all commands.

func NewHelpVersionFlags

func NewHelpVersionFlags(opts *options.TerragruntOptions) cli.Flags

func NewLogLevelFlag

func NewLogLevelFlag(opts *options.TerragruntOptions, prefix flags.Prefix) cli.Flag

func VersionAction

func VersionAction(ctx *cli.Context, _ *options.TerragruntOptions) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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