util

package
v0.45.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TaskAddPropFlags

func TaskAddPropFlags(cmd *cobra.Command, f cmdutil.Factory)

TaskAddPropFlags add common flags expected on editing a task

func TaskAddReportFlags

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

TaskAddReportFlags will add common format flags used for tasks

func TaskReport

func TaskReport(cmd *cobra.Command, of OutputFlags, tasks ...dto.Task) error

TaskReport will output the task as set by the flags

Types

type FlagsDTO

type FlagsDTO struct {
	Workspace   string
	ProjectID   string
	Name        string
	Estimate    *time.Duration
	AssigneeIDs *[]string
	Billable    *bool
}

FlagsDTO holds data about editing or creating a Task

func TaskReadFlags

func TaskReadFlags(cmd *cobra.Command, f cmdutil.Factory) (p FlagsDTO, err error)

TaskReadFlags read the common flags expected when editing a task

type OutputFlags

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

OutputFlags sets how the tasks will be printed

func (OutputFlags) Check added in v0.40.0

func (of OutputFlags) Check() error

Check guaranties that only one type of output is chosen

Jump to

Keyboard shortcuts

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