cdk

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 NewClient added in v0.2.1

func NewClient(cmd *cobra.Command) *client.DexAPI

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

Jump to

Keyboard shortcuts

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