formats

package
v0.0.0-...-119445b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package formats provides additional output formats for proto-cli.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Table

func Table() protocli.OutputFormat

Table returns an OutputFormat that renders proto messages as tab-separated columns.

Features:

  • Flattens nested messages with dot notation (e.g. "user.name")
  • Renders repeated fields as comma-separated values
  • Sorted column keys for deterministic output
  • First Format() call emits header + data; subsequent calls emit data only
  • Supports --no-header flag to suppress the header row
  • Tab-separated output is composable with `column -t`

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL