MCPcopy Create free account
hub / github.com/barnybug/cli53 / effectiveSharedConfigProfile

Function effectiveSharedConfigProfile

util.go:137–148  ·  view source on GitHub ↗
(profile string)

Source from the content-addressed store, hash-verified

135}
136
137func effectiveSharedConfigProfile(profile string) string {
138 switch {
139 case profile != "":
140 return profile
141 case os.Getenv("AWS_PROFILE") != "":
142 return os.Getenv("AWS_PROFILE")
143 case os.Getenv("AWS_DEFAULT_PROFILE") != "":
144 return os.Getenv("AWS_DEFAULT_PROFILE")
145 default:
146 return "default"
147 }
148}
149
150func sharedConfigFilesForDebug() []string {
151 if path := os.Getenv("AWS_CONFIG_FILE"); path != "" {

Callers 1

getConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected