MCPcopy Create free account
hub / github.com/OctopusDeploy/cli / SetupConfigFile

Function SetupConfigFile

pkg/config/config.go:19–23  ·  view source on GitHub ↗
(v *viper.Viper, configPath string)

Source from the content-addressed store, hash-verified

17const appData = "AppData"
18
19func SetupConfigFile(v *viper.Viper, configPath string) {
20 v.SetConfigName(configName)
21 v.SetConfigType(defaultConfigFileType)
22 v.AddConfigPath(configPath)
23}
24
25func setDefaults(v *viper.Viper) {
26 v.SetDefault(constants.ConfigUrl, "")

Callers 3

setRunFunction · 0.92
SetMethod · 0.85
SetupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected