clirender

package
v1.21.103 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2026 License: Apache-2.0 Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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