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

Function findVal

cli/pkg/ssh_config/config.go:95–107  ·  view source on GitHub ↗
(c *Config, alias, key string)

Source from the content-addressed store, hash-verified

93}
94
95func findVal(c *Config, alias, key string) (string, error) {
96 if c == nil {
97 return "", nil
98 }
99 val, err := c.Get(alias, key)
100 if err != nil || val == "" {
101 return "", err
102 }
103 if err := validate(key, val); err != nil {
104 return "", err
105 }
106 return val, nil
107}
108
109func findAll(c *Config, alias, key string) ([]string, error) {
110 if c == nil {

Callers 1

GetStrictMethod · 0.85

Calls 2

validateFunction · 0.85
GetMethod · 0.45

Tested by

no test coverage detected