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

Function qualifyName

util.go:29–40  ·  view source on GitHub ↗

Qualify names, if relative

(name, origin string)

Source from the content-addressed store, hash-verified

27
28// Qualify names, if relative
29func qualifyName(name, origin string) string {
30 if name == "" || name == "@" {
31 // root
32 return origin
33 } else if !strings.HasSuffix(name, ".") {
34 // unqualified
35 return name + "." + origin
36 } else {
37 // qualified
38 return name
39 }
40}
41
42func getConfig(c *cli.Context) (aws.Config, error) {
43 ctx := context.Background()

Callers 3

expandSelfAliasFunction · 0.85
deleteRecordFunction · 0.85
TestQualifyNameFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestQualifyNameFunction · 0.68