We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 86b7388 + 0430565 commit b4e01a4Copy full SHA for b4e01a4
cmd/protoc-gen-oas/main.go
@@ -21,6 +21,7 @@ func run() error {
21
description := set.String("description", "", "Description")
22
version := set.String("version", "", "Version")
23
indent := set.Int("indent", 2, "Indent")
24
+ filename := set.String("filename", "openapi", "Filename")
25
26
if err := set.Parse(os.Args[1:]); err != nil {
27
return errors.Wrap(err, "parse args")
@@ -50,7 +51,7 @@ func run() error {
50
51
return err
52
}
53
- gf := plugin.NewGeneratedFile("openapi.yaml", "")
54
+ gf := plugin.NewGeneratedFile(fmt.Sprintf("%s.yaml", *filename), "")
55
if _, err := gf.Write(bytes); err != nil {
56
57
0 commit comments