cliconfig

package
v0.4.4-rc5 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package cliconfig implements the parser and load of Terramate CLI Configuration files (.terramaterc and terramate.rc).

Index

Constants

View Source
const (
	// ErrInvalidAttributeType indicates the attribute has an invalid type.
	ErrInvalidAttributeType errors.Kind = "attribute with invalid type"

	// ErrUnrecognizedAttribute indicates the attribute is unrecognized.
	ErrUnrecognizedAttribute errors.Kind = "unrecognized attribute"
)
View Source
const DirEnv = "HOME"

DirEnv is the environment variable used to define the config location.

View Source
const Filename = ".terramaterc"

Filename is the name of the CLI configuration file.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DisableCheckpoint          bool
	DisableCheckpointSignature bool
	UserTerramateDir           string
}

Config is the evaluated CLI configuration options.

func Load

func Load() (cfg Config, err error)

Load loads (parses and evaluates) all CLI configuration files.

func LoadFrom

func LoadFrom(fname string) (Config, error)

LoadFrom loads the CLI configuration file from fname.

Jump to

Keyboard shortcuts

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