util

package
v0.42.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 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 users

func Report

func Report(u []dto.User, out io.Writer, of OutputFlags) error

Report prints out the users

Types

type OutputFlags

type OutputFlags struct {
	Format string
	JSON   bool
	Quiet  bool
}

OutputFlags sets how to print out a list of users

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