util

package
v0.38.2 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddReportFlags

func AddReportFlags(cmd *cobra.Command, of *OutputFlags)

AddReportFlags adds the default output flags for clients

func Report

func Report(cs []dto.Client, out io.Writer, of OutputFlags) error

Report prints out the clients

Types

type OutputFlags

type OutputFlags struct {
	Format string
	CSV    bool
	JSON   bool
	Quiet  bool
}

OutputFlags sets how to print out a list of clients

func (OutputFlags) Check

func (of OutputFlags) Check() error

Jump to

Keyboard shortcuts

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