Documentation
¶
Index ¶
- Constants
- func AddFlags(flags *pflag.FlagSet)
- func Project(raw any, columns []Column) ([]string, [][]string, error)
- func Render(out io.Writer, headers []string, rows [][]string, availableWidth int) error
- func RenderAutoWidth(out io.Writer, headers []string, rows [][]string) error
- func ValidateColumnFlags(helper cmdpkg.Helper, cfg config.Hook) error
- type Column
Constants ¶
View Source
const ( FlagName = "columns" MaxColumnWidth = 40 )
Variables ¶
This section is empty.
Functions ¶
func RenderAutoWidth ¶
RenderAutoWidth detects the output terminal width and falls back to 120 columns when the output does not expose a terminal file descriptor.
Types ¶
Click to show internal directories.
Click to hide internal directories.