config

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const Filename = ".ldcli-config.yml"

Variables

This section is empty.

Functions

func GetConfigFile

func GetConfigFile() string

GetConfigFile gets the full path to the config file.

Types

type ConfigFile

type ConfigFile struct {
	AccessToken     string `json:"access-token,omitempty" yaml:"access-token,omitempty"`
	AnalyticsOptOut *bool  `json:"analytics-opt-out,omitempty" yaml:"analytics-opt-out,omitempty"`
	BaseURI         string `json:"base-uri,omitempty" yaml:"base-uri,omitempty"`
	Flag            string `json:"flag,omitempty" yaml:"flag,omitempty"`
	Environment     string `json:"environment,omitempty" yaml:"environment,omitempty"`
	Output          string `json:"output,omitempty" yaml:"output,omitempty"`
	Project         string `json:"project,omitempty" yaml:"project,omitempty"`
}

ConfigFile represents the data stored in the config file.

func NewConfig

func NewConfig(rawConfig map[string]interface{}) (ConfigFile, error)

Jump to

Keyboard shortcuts

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