TXTPBFMT(1)

πŸ“¦
version 0.0~git20241112.20d2c9e Β· 3 versions
, in ubuntu resolute, ubuntu stonking

πŸ¦‹ 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 line file: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 (-1 means don't buffer; 0 means buffer INFO only; ...). 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 a string, and yes it's specific 🎯
  • -stderrthreshold value β€” logs at or above this threshold go to stderr (default 2). 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 of pattern=N settings for file-filtered logging πŸ—‚οΈ
  • -wrap_html_strings β€” wraps strings containing HTML tags. (requires wrap_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. (0 means 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