scopeLabel returns a formatted label like "scope 'name' (description)" or "scope 'name'".
(name, description string)
| 472 | |
| 473 | // scopeLabel returns a formatted label like "scope 'name' (description)" or "scope 'name'". |
| 474 | func 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 | |
| 481 | var knownConfigKeys = map[string]bool{ |
| 482 | "dir": true, |