client

package
v0.1.19 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command() *cobra.Command

func Display

func Display(cmd *cobra.Command, v any, prettyFormatter FormatFn) error

Display formats the given value 'v' using format specified as value for --format flag and writes to STDOUT. If --format=pretty/human, custom-formatter passed will be used.

func GoFormat

func GoFormat(w io.Writer, v any) error

GoFormat outputs 'v' formatted using pp package.

func JSONFormat

func JSONFormat(w io.Writer, v any) error

JSONFormat outputs 'v' formatted as indented JSON.

func TOMLFormat

func TOMLFormat(w io.Writer, v any) error

TOMLFormat outputs 'v' formatted as per TOML spec.

func YAMLFormat

func YAMLFormat(w io.Writer, v any) error

YAMLFormat outputs 'v' formatted as per YAML spec.

Types

type FormatFn

type FormatFn func(w io.Writer, v any) error

type RunEFunc

type RunEFunc func(cmd *cobra.Command, args []string) error

Jump to

Keyboard shortcuts

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