output

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TIME_FORMAT_FULL   = "2006-01-02 15:04:05"
	TIME_FORMAT_SIMPLE = "15:04:05"
)

Variables

This section is empty.

Functions

func ProjectPrint

func ProjectPrint(ws []dto.Project, w io.Writer) error

ProjectPrint will print more details

func ProjectPrintQuietly

func ProjectPrintQuietly(ws []dto.Project, w io.Writer) error

ProjectPrintQuietly will only print the IDs

func ProjectPrintWithTemplate

func ProjectPrintWithTemplate(format string) func([]dto.Project, io.Writer) error

ProjectPrintWithTemplate will print each worspace using the format string

func ProjectsCSVPrint

func ProjectsCSVPrint(projects []dto.Project, out io.Writer) error

ProjectsCSVPrint will print each time entry using the format string

func ProjectsJSONPrint

func ProjectsJSONPrint(t []dto.Project, w io.Writer) error

ProjectsJSONPrint will print as JSON

func TagPrint

func TagPrint(ws []dto.Tag, w io.Writer) error

TagPrint will print more details

func TagPrintQuietly

func TagPrintQuietly(ws []dto.Tag, w io.Writer) error

TagPrintQuietly will only print the IDs

func TagPrintWithTemplate

func TagPrintWithTemplate(format string) func([]dto.Tag, io.Writer) error

TagPrintWithTemplate will print each worspace using the format string

func TimeEntriesCSVPrint

func TimeEntriesCSVPrint(timeEntries []dto.TimeEntry, out io.Writer) error

TimeEntriesCSVPrint will print each time entry using the format string

func TimeEntriesJSONPrint

func TimeEntriesJSONPrint(t []dto.TimeEntry, w io.Writer) error

TimeEntriesJSONPrint will print as JSON

func TimeEntriesPrint

func TimeEntriesPrint(showTasks bool) func([]dto.TimeEntry, io.Writer) error

TimeEntriesPrint will print more details

func TimeEntriesPrintQuietly

func TimeEntriesPrintQuietly(timeEntries []dto.TimeEntry, w io.Writer) error

TimeEntriesPrintQuietly will only print the IDs

func TimeEntriesPrintWithTemplate

func TimeEntriesPrintWithTemplate(format string) func([]dto.TimeEntry, io.Writer) error

TimeEntriesPrintWithTemplate will print each time entry using the format string

func TimeEntriesPrintWithTimeFormat

func TimeEntriesPrintWithTimeFormat(format string, showTasks bool) func([]dto.TimeEntry, io.Writer) error

TimeEntriesPrintWithTimeFormat will print more details

func TimeEntryCSVPrint

func TimeEntryCSVPrint(t *dto.TimeEntry, w io.Writer) error

TimeEntryCSVPrint will print as CSV

func TimeEntryJSONPrint

func TimeEntryJSONPrint(t *dto.TimeEntry, w io.Writer) error

TimeEntryJSONPrint will print as JSON

func TimeEntryPrint

func TimeEntryPrint(showTasks bool) func(*dto.TimeEntry, io.Writer) error

TimeEntryPrint will print more details

func TimeEntryPrintQuietly

func TimeEntryPrintQuietly(timeEntry *dto.TimeEntry, w io.Writer) error

TimeEntryPrintQuietly will only print the IDs

func TimeEntryPrintWithTemplate

func TimeEntryPrintWithTemplate(format string) func(*dto.TimeEntry, io.Writer) error

TimeEntryPrintWithTemplate will print each time entry using the format string

func UserJSONPrint

func UserJSONPrint(u dto.User, w io.Writer) error

func UserPrint

func UserPrint(users []dto.User, w io.Writer) error

UserPrint will print more details

func UserPrintQuietly

func UserPrintQuietly(users []dto.User, w io.Writer) error

UserPrintQuietly will only print the IDs

func UserPrintWithTemplate

func UserPrintWithTemplate(format string) func([]dto.User, io.Writer) error

UserPrintWithTemplate will print each worspace using the format string

func WorkspacePrint

func WorkspacePrint(wDefault string) func(ws []dto.Workspace, w io.Writer) error

WorkspacePrint will print more details

func WorkspacePrintQuietly

func WorkspacePrintQuietly(ws []dto.Workspace, w io.Writer) error

WorkspacePrintQuietly will only print the IDs

func WorkspacePrintWithTemplate

func WorkspacePrintWithTemplate(format string) func([]dto.Workspace, io.Writer) error

WorkspacePrintWithTemplate will print each worspace using the format string

Types

This section is empty.

Jump to

Keyboard shortcuts

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