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: 9 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
}

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

Jump to

Keyboard shortcuts

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