TXTPBFMT(1)
π¦ NAME π¦
okay bestie, meet txtpbfmt β the little icon that exists to modify text proto files preserving comments. it lives in the User Commands part of the manual, and yeah, we're calling it txtpbfmt(1) like the cool kid it is. π
β¨ DESCRIPTION β¨
so like, txtpbfmt takes your text proto files and modifies them, and the absolute main character move here is that it preserves your comments. no comment left behind, periodt. πβ¨
here's the thing though, it's got a whole mansion of flags, and they all live under this lil banner that says:
Usage of txtpbfmt:
and now for the tour, bestie β every single flag, no skips, no cap:
-allow_triple_quoted_stringsβ lets you use Python-style"""or'''delimited strings in your input. yes she speaks Python now π-alsologtostderrβ logs to standard error as well as to files. both. she's versatile. π-dry_runβ turns on dry run mode. look with your eyes, don't touch anything π-expand_all_childrenβ expands every child no matter what state they started in. everybody gets expanded, no favorites π-log_backtrace_at valueβ when logging hits linefile:N, it emits a stack trace. it's giving receipts π§Ύ-log_dir stringβ if it's non-empty, write log files into this directory π-log_link stringβ if it's non-empty, add symbolic links into this directory that point to the log files π-logbuflevel intβ buffer log messages logged at this level or lower (-1means don't buffer;0means bufferINFOonly; ...). has limited applicability on non-prod platforms. so like, don't @ her on a laptop π-logtostderrβ log to standard error instead of to files. main character chooses the terminal π-preserve_angle_bracketsβ keeps angle brackets as angle brackets instead of converting them to curly braces.<stays<, she said what she said π₯-remove_duplicate_values_for_repeated_fieldsβ deletes lines that have the same field name and scalar value as another line. duplicates, be gone π-skip_all_colonsβ skips colons whenever possible. colon-free lifestyle, we love to see it π-smart_quotesβ uses single quotes around strings that contain double quotes but not single quotes. big brain quoting π-sort_fields_by_field_nameβ sorts fields by field name. alphabetical queen π-sort_repeated_fields_by_contentβ sorts adjacent scalar fields that share the same field name by their contents π€-sort_repeated_fields_by_subfield stringβ sorts adjacent message fields of the given field name by the contents of the given subfield. yes it takes astring, and yes it's specific π―-stderrthreshold valueβ logs at or above this threshold go to stderr (default2). the drama threshold, but make it logging π¨-stdin_display_path stringβ the path to display when referring to the content read from stdin. (default"<stdin>") β so when stdin shows up in a message, this is the name it gets π·οΈ-v valueβ log level for V logs π-vmodule valueβ a comma-separated list ofpattern=Nsettings for file-filtered logging ποΈ-wrap_html_stringsβ wraps strings containing HTML tags. (requireswrap_strings_at_column > 0.) so you gotta set that column first, bestie, that's not optional β οΈ-wrap_strings_after_newlinesβ wraps strings after newlines πͺ-wrap_strings_at_column intβ max columns for string field values. (0means no wrap.) zero = go feral, no wrapping π«-wrap_strings_without_wordwrapβ wraps strings at the given column only. just the column. nowhere else. βοΈ
lowkey important: some of these log-ish flags are the standard Go logging squad, so if one of them looks niche and slightly cursed, that's because it is β but they're all real and they're all here. π
and that's the whole page, bestie β she ate and left no crumbs π«Άβ¨ this was txtpbfmt version 0.0~git20241112.20d2..., dated February 2026, and it's manual TXTPBFMT(1) forever. slay, go format those protos π
πΈ
π¦ where this page comes from
- ubuntu resolute: txtpbfmt 0.0~git20241112.20d2c9e-2build1 Β· Apache-2.0
- ubuntu stonking: txtpbfmt 0.0~git20241112.20d2c9e-2build1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms