()
| 90 | } |
| 91 | |
| 92 | func 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 | } |
nothing calls this directly
no test coverage detected