summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-03-26 03:03:22 -0500
committerJeff Carr <[email protected]>2025-03-26 20:44:06 -0500
commit2775e36aa4e981a4a052b6f15148b61b0f13a2f7 (patch)
tree1e3d272a89b35129fba6c4eaef03d6f1ae0de01b /main.go
parent96fe1d8f1413438c936befd0261adbd8181bc181 (diff)
try to autoformat the protobufs for the signal devs
Diffstat (limited to 'main.go')
-rw-r--r--main.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.go b/main.go
index ac1ee1a..004ce5a 100644
--- a/main.go
+++ b/main.go
@@ -62,6 +62,11 @@ func main() {
os.Exit(-1)
}
+ if argv.Format {
+ protoReformat(argv.Proto)
+ okExit("")
+ }
+
if argv.Regret {
// this will override the manditory Uuid checks
os.Setenv("PROTOBUF_REGRET", "true")