MCPcopy Index your code
hub / github.com/coder/coder / main

Function main

scripts/apikeyscopesgen/main.go:15–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13)
14
15func main() {
16 out, err := generate()
17 if err != nil {
18 _, _ = fmt.Fprintf(os.Stderr, "generate apikey scopes: %v\n", err)
19 os.Exit(1)
20 }
21 if _, err := fmt.Print(string(out)); err != nil {
22 _, _ = fmt.Fprintf(os.Stderr, "write output: %v\n", err)
23 os.Exit(1)
24 }
25}
26
27func generate() ([]byte, error) {
28 allNames := collectAllScopeNames()

Callers

nothing calls this directly

Calls 2

generateFunction · 0.85
ExitMethod · 0.80

Tested by

no test coverage detected