diff options
| author | Jeff Carr <[email protected]> | 2025-11-03 17:54:34 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-11-03 17:54:34 -0600 |
| commit | 6e42220bb03724789c27efdaac35cca2d08a1a02 (patch) | |
| tree | a6f08f42ddb4e75c07ece9d652ac462e80e300b3 | |
| parent | 01cd36974b1f38264d2ff56b8c03c5103b78612c (diff) | |
| -rw-r--r-- | doProto.go | 2 | ||||
| -rw-r--r-- | main.go | 10 | ||||
| -rw-r--r-- | protoReformat.go | 2 |
3 files changed, 7 insertions, 7 deletions
@@ -44,7 +44,7 @@ func doProto(argvProto string) (string, error) { return "doClean() ran", nil } - if argv.ReFormat { + if argv.ReFormat || argv.Renumber { protoReformatComments(argvProto) // time.Sleep(5 * time.Second) protoReformat(argvProto) @@ -58,11 +58,11 @@ func main() { } else { // user is trying a specific proto file // check if it's ok to run autogenpb - s, err = doPrecheck(argv.Proto) - if err == nil { - // it's safe to run - s, err = doProto(argv.Proto) - } + // s, err = doPrecheck(argv.Proto) + // if err == nil { + // it's safe to run + s, err = doProto(argv.Proto) + // } } // safe exits back to your shell (with timing and toolkit close) diff --git a/protoReformat.go b/protoReformat.go index 77cc723..188bf66 100644 --- a/protoReformat.go +++ b/protoReformat.go @@ -576,8 +576,8 @@ func (msg *FormatMsg) formatVarLine(line string, dbg string) string { } msg.Counter += 1 if int(msg.Counter) != newint { + log.Info("COUNTER WAS WRONG", newint, id, vartype, varname, msg.Header) // panic("you can't count") - log.Info("counter is wrong", newint, id, msg.Header) } id = fmt.Sprintf("%d", msg.Counter) } |
