util

package
v0.48.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const FormatJSON = "json"
View Source
const FormatYAML = "yaml"

Variables

This section is empty.

Functions

func AddReportFlags

func AddReportFlags(cmd *cobra.Command, format *string) error

AddReportFlags adds the format flag

func Report

func Report(out io.Writer, format string, v interface{}) error

Report prints the value as YAML or JSON

Types

This section is empty.

Jump to

Keyboard shortcuts

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