column

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunColumn

func RunColumn(w io.Writer, r io.Reader, args []string, opts ColumnOptions) error

RunColumn columnates lists r is the default input reader (used when args is empty or contains "-")

Types

type ColumnOptions

type ColumnOptions struct {
	Table         bool   // -t: determine column count based on input
	Separator     string // -s: column delimiter characters for -t option
	OutputSep     string // -o: output separator for table mode
	Columns       int    // -c: output is formatted for display width of N (default 80)
	FillRows      bool   // -x: fill rows before columns
	NoMerge       bool   // -n: do not merge multiple adjacent delimiters
	Right         bool   // -R: right-align columns
	JSON          bool   // -J: output as JSON
	TableName     string // -N: table name for JSON output
	ColumnHeaders string // -H: specify column headers
}

ColumnOptions configures the column command behavior

Jump to

Keyboard shortcuts

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