util

package
v0.49.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HelpNamesForIds           = util.HelpNamesForIds
	HelpMoreInfoAboutPrinting = util.HelpMoreInfoAboutPrinting
)

Variables

This section is empty.

Functions

func AddReportFlags

func AddReportFlags(
	f cmdutil.Factory, cmd *cobra.Command, rf *ReportFlags,
)

AddReportFlags add flags for print out the time entries

func ReportWithRange

func ReportWithRange(
	f cmdutil.Factory, start, end time.Time,
	out io.Writer, rf ReportFlags,
) error

ReportWithRange fetches and prints out time entries

Types

type ReportFlags added in v0.39.0

type ReportFlags struct {
	util.OutputFlags

	FillMissingDates bool

	Billable    bool
	NotBillable bool

	Description string
	Client      string
	Projects    []string
	TagIDs      []string
}

ReportFlags reads the "shared" flags for report commands

func NewReportFlags added in v0.39.0

func NewReportFlags() ReportFlags

NewReportFlags helps creating a util.ReportFlags for report commands

func (ReportFlags) Check added in v0.39.0

func (rf ReportFlags) Check() error

Check will assure that there is no conflicting flag values

Jump to

Keyboard shortcuts

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