Support for referencing types in different API files using format (#1630)

This commit is contained in:
chensy
2022-03-12 15:17:31 +08:00
committed by GitHub
parent 209ffb934b
commit c55694d957
6 changed files with 56 additions and 19 deletions

View File

@@ -160,6 +160,10 @@ var commands = []cli.Command{
Name: "stdin",
Usage: "use stdin to input api doc content, press \"ctrl + d\" to send EOF",
},
cli.BoolFlag{
Name: "declare",
Usage: "use to skip check api types already declare",
},
},
Action: format.GoFormatApi,
},