Documentation ¶
Index ¶
- func Display(cmd *cobra.Command, v any, prettyFormatter FormatFn) error
- func GoFormat(w io.Writer, v any) error
- func JSONFormat(w io.Writer, v any) error
- func NewClient(cmd *cobra.Command) *client.DexAPI
- func TOMLFormat(w io.Writer, v any) error
- func YAMLFormat(w io.Writer, v any) error
- type FormatFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Display ¶
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 JSONFormat ¶
JSONFormat outputs 'v' formatted as indented JSON.
func TOMLFormat ¶
TOMLFormat outputs 'v' formatted as per TOML spec.
Types ¶
Click to show internal directories.
Click to hide internal directories.