Help us shape the future of Go! Take the 2026 Go Developer Survey

clirender

package
v1.21.89 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package clirender renders the clicky CLI's data inputs: schema-backed data files and schema-less stdin/file input, to stdout, stderr or file sinks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderDataFiles

func RenderDataFiles(schemaFile string, files []string, opts Options) error

RenderDataFiles loads the PrettyObject schema from schemaFile and renders each JSON/YAML data file with it.

func RenderInput

func RenderInput(files []string, inputFormat string, opts Options) error

RenderInput reads schema-less stdin (when files is empty) or files, parses each according to inputFormat, and renders it through the Clicky formatter manager into every configured sink.

Types

type Options

type Options struct {
	Stdin  io.Reader
	Stdout io.Writer
	Stderr io.Writer
	Format formatters.FormatOptions
}

Options carries the command's streams and resolved format options.

Jump to

Keyboard shortcuts

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