MCPcopy Create free account
hub / github.com/OpenAtomFoundation/SmartIDE / Get

Method Get

cli/pkg/ssh_config/config.go:179–185  ·  view source on GitHub ↗

Get finds the first value for key within a declaration that matches the alias. Get returns the empty string if no value was found, or if IgnoreErrors is false and we could not parse the configuration file. Use GetStrict to disambiguate the latter cases. The match for key is case insensitive.

(alias, key string)

Source from the content-addressed store, hash-verified

177//
178// The match for key is case insensitive.
179func (u *UserSettings) Get(alias, key string) string {
180 val, err := u.GetStrict(alias, key)
181 if err != nil {
182 return ""
183 }
184 return val
185}
186
187// GetAll retrieves zero or more directives for key for the given alias. GetAll
188// returns nil if no value was found, or if IgnoreErrors is false and we could

Callers

nothing calls this directly

Calls 1

GetStrictMethod · 0.95

Tested by

no test coverage detected