Documentation ¶
Index ¶
- Constants
- func ProjectPrint(ws []dto.Project, w io.Writer) error
- func ProjectPrintQuietly(ws []dto.Project, w io.Writer) error
- func ProjectPrintWithTemplate(format string) func([]dto.Project, io.Writer) error
- func ProjectsCSVPrint(projects []dto.Project, out io.Writer) error
- func ProjectsJSONPrint(t []dto.Project, w io.Writer) error
- func TagPrint(ws []dto.Tag, w io.Writer) error
- func TagPrintQuietly(ws []dto.Tag, w io.Writer) error
- func TagPrintWithTemplate(format string) func([]dto.Tag, io.Writer) error
- func TimeEntriesCSVPrint(timeEntries []dto.TimeEntry, out io.Writer) error
- func TimeEntriesJSONPrint(t []dto.TimeEntry, w io.Writer) error
- func TimeEntriesMarkdownPrint(tes []dto.TimeEntry, w io.Writer) error
- func TimeEntriesPrint(opts ...TimeEntryOutputOpt) func([]dto.TimeEntry, io.Writer) error
- func TimeEntriesPrintQuietly(timeEntries []dto.TimeEntry, w io.Writer) error
- func TimeEntriesPrintWithTemplate(format string) func([]dto.TimeEntry, io.Writer) error
- func TimeEntriesTotalDurationOnlyAsFloat(timeEntries []dto.TimeEntry, w io.Writer) error
- func TimeEntriesTotalDurationOnlyFormatted(timeEntries []dto.TimeEntry, w io.Writer) error
- func UserJSONPrint(u dto.User, w io.Writer) error
- func UserPrint(users []dto.User, w io.Writer) error
- func UserPrintQuietly(users []dto.User, w io.Writer) error
- func UserPrintWithTemplate(format string) func([]dto.User, io.Writer) error
- func WorkspacePrint(wDefault string) func(ws []dto.Workspace, w io.Writer) error
- func WorkspacePrintQuietly(ws []dto.Workspace, w io.Writer) error
- func WorkspacePrintWithTemplate(format string) func([]dto.Workspace, io.Writer) error
- type TimeEntryOutputOpt
- type TimeEntryOutputOptions
Constants ¶
const ( TIME_FORMAT_FULL = "2006-01-02 15:04:05" TIME_FORMAT_SIMPLE = "15:04:05" )
Variables ¶
This section is empty.
Functions ¶
func ProjectPrint ¶
ProjectPrint will print more details
func ProjectPrintQuietly ¶
ProjectPrintQuietly will only print the IDs
func ProjectPrintWithTemplate ¶
ProjectPrintWithTemplate will print each worspace using the format string
func ProjectsCSVPrint ¶
ProjectsCSVPrint will print each time entry using the format string
func ProjectsJSONPrint ¶
ProjectsJSONPrint will print as JSON
func TagPrintQuietly ¶
TagPrintQuietly will only print the IDs
func TagPrintWithTemplate ¶
TagPrintWithTemplate will print each worspace using the format string
func TimeEntriesCSVPrint ¶
TimeEntriesCSVPrint will print each time entry using the format string
func TimeEntriesJSONPrint ¶
TimeEntriesJSONPrint will print as JSON
func TimeEntriesMarkdownPrint ¶ added in v0.25.0
TimeEntriesMarkdownPrint will print time entries in "markdown blocks"
func TimeEntriesPrint ¶
TimeEntriesPrint will print more details
func TimeEntriesPrintQuietly ¶
TimeEntriesPrintQuietly will only print the IDs
func TimeEntriesPrintWithTemplate ¶
TimeEntriesPrintWithTemplate will print each time entry using the format string
func TimeEntriesTotalDurationOnlyAsFloat ¶ added in v0.27.0
TimeEntriesTotalDurationOnlyAsFloat will only print the total duration as float
func TimeEntriesTotalDurationOnlyFormatted ¶ added in v0.27.0
TimeEntryTotalDurationOnlyFormatted will only print the total duration as float
func UserPrintQuietly ¶
UserPrintQuietly will only print the IDs
func UserPrintWithTemplate ¶
UserPrintWithTemplate will print each worspace using the format string
func WorkspacePrint ¶
WorkspacePrint will print more details
func WorkspacePrintQuietly ¶
WorkspacePrintQuietly will only print the IDs
Types ¶
type TimeEntryOutputOpt ¶ added in v0.27.0
type TimeEntryOutputOpt func(*TimeEntryOutputOptions) error
TimeEntryOutputOpt allows the setting of TimeEntryOutputOptions values
func WithShowTasks ¶ added in v0.27.0
func WithShowTasks() TimeEntryOutputOpt
WithShowTasks shows a new column with the task of the time entry
func WithTimeFormat ¶ added in v0.27.0
func WithTimeFormat(format string) TimeEntryOutputOpt
WithTimeFormat sets the date-time output format
func WithTotalDuration ¶ added in v0.27.0
func WithTotalDuration() TimeEntryOutputOpt
WithDurationTotal shows a footer with the sum of the durations of the time entries
type TimeEntryOutputOptions ¶ added in v0.27.0
TimeEntryOptions sets how the "table" format should print the time entries