| commit | 4de814c7a6a8ff057afd1250e1c707c20e8e22e0 | [log] [tgz] |
|---|---|---|
| author | kaue <[email protected]> | Wed Jun 03 10:05:14 2020 |
| committer | txtpbfmt team <[email protected]> | Wed Jun 03 12:22:57 2020 |
| tree | 6d02fcbd0d19a591deb87181752f68f3ea880247 | |
| parent | 295016e84c812f206cdea8e3fa1c98fa56273416 [diff] |
Move new files to their own folder to fix package error. PiperOrigin-RevId: 314498398
txtpbfmt parses, edits and formats text proto files in a way that preserves comments.
This saves development (read/edit/review) time and enables automated edits.
Install:
$ go get -u github.com/protocolbuffers/txtpbfmt/cmd/txtpbfmt
Format files in-place:
$ ${GOPATH}/bin/txtpbfmt [FILES]
Write formatted input to stdout:
$ ${GOPATH}/bin/txtpbfmt < [FILE]
Main features:
Yes, see ast.go.
You can disable formatting for a whole file by adding a comment with “# txtpbfmt: disable” to the top of the file (before the first non-empty non-comment line), eg:
# File overview ... # txtpbfmt: disable content: { ... }
The .textproto extension is the most used extension inside Google (the second most popular choice is .textpb).
Currently there is no open source integration with any editor.