MCPcopy Create free account
hub / github.com/driangle/taskmd / scopeLabel

Function scopeLabel

sdk/go/validator/validator.go:474–479  ·  view source on GitHub ↗

scopeLabel returns a formatted label like "scope 'name' (description)" or "scope 'name'".

(name, description string)

Source from the content-addressed store, hash-verified

472
473// scopeLabel returns a formatted label like "scope 'name' (description)" or "scope 'name'".
474func scopeLabel(name, description string) string {
475 if description != "" {
476 return fmt.Sprintf("scope '%s' (%s)", name, description)
477 }
478 return fmt.Sprintf("scope '%s'", name)
479}
480
481var knownConfigKeys = map[string]bool{
482 "dir": true,

Callers 1

checkConfigScopesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected