MCPcopy
hub / github.com/docker/compose / main

Function main

docs/yaml/main/generate.go:92–104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

90}
91
92func main() {
93 cwd, _ := os.Getwd()
94 opts := &options{
95 source: filepath.Join(cwd, "docs", "reference"),
96 target: filepath.Join(cwd, "docs", "reference"),
97 formats: []string{"yaml", "md"},
98 }
99 fmt.Printf("Project root: %s\n", opts.source)
100 fmt.Printf("Generating yaml files into %s\n", opts.target)
101 if err := generateDocs(opts); err != nil {
102 _, _ = fmt.Fprintf(os.Stderr, "Failed to generate documentation: %s\n", err.Error())
103 }
104}

Callers

nothing calls this directly

Calls 2

generateDocsFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected