config

package
v0.0.0-...-6e106ee Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2022 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package config deals with configuration of the CLI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithConfig

func WithConfig(cmd *cobra.Command)

WithConfig add Config related flags to the command.

Types

type Config

type Config struct {
	Path string `mapstructure:"config"`
}

Config is the configuration for the whole tfspace.

func GetConfig

func GetConfig() (*Config, error)

GetConfig collects all values from flags and return Config with those values.

Jump to

Keyboard shortcuts

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