diff options
| author | Jeff Carr <[email protected]> | 2025-03-27 15:03:11 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-03-27 15:03:11 -0500 |
| commit | 4b7f42004512c83869370c20cc22398b1a4a2ab2 (patch) | |
| tree | d86665981e1e56ae597a4775ef614bbbc5638e59 /main.go | |
| parent | be94cbe32077eeee49969adffc169f879f153ab1 (diff) | |
a real world example
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -66,6 +66,10 @@ func main() { protoReformat(argv.Proto) okExit("") } + if argv.Comments { + protoReformatComments(argv.Proto) + okExit("") + } if argv.Regret { // this will override the manditory Uuid checks @@ -86,6 +90,7 @@ func main() { log.Info("autogenpb parse error:", err) badExit(err) } + if !argv.NoFormat { protoReformat(argv.Proto) } |
