util

package
v0.42.2 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: Apache-2.0 Imports: 6 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 common flags to print projects

func Report

func Report(list []dto.Project, out io.Writer, f OutputFlags) error

Report will print the projects as set by the flags

func ReportOne added in v0.42.0

func ReportOne(p dto.Project, out io.Writer, f OutputFlags) error

ReportOne will print a project as set by the flags

Types

type OutputFlags

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

OutputFlags defines how to print the project

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