Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetVersionInfo ¶ added in v0.10.0
func SetVersionInfo(version, commit, date, builtBy string)
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd. SetVersionInfo sets the version information from main
Types ¶
type BreakExportData ¶ added in v0.11.0
type BreakExportData struct {
Date string `json:"date" csv:"Date"`
BreakID int `json:"break_id" csv:"Break ID"`
StartTime string `json:"start_time" csv:"Start Time"`
EndTime string `json:"end_time" csv:"End Time"`
Duration string `json:"duration" csv:"Duration"`
Reason string `json:"reason" csv:"Reason"`
}
type ExportData ¶ added in v0.11.0
type ExportData struct {
GeneratedAt time.Time `json:"generated_at"`
DateRange string `json:"date_range"`
Entries []journal.JournalEntry `json:"entries"`
Summary ExportSummary `json:"summary"`
}
ExportData represents the structure for JSON exports
type ExportSummary ¶ added in v0.11.0
type TempJournalEntry ¶
type TimesheetExportData ¶ added in v0.11.0
type TimesheetExportData struct {
Date string `json:"date" csv:"Date"`
StartTime string `json:"start_time" csv:"Start Time"`
EndTime string `json:"end_time" csv:"End Time"`
WorkTime string `json:"work_time" csv:"Work Time"`
BreakTime string `json:"break_time" csv:"Break Time"`
NumberBreaks int `json:"number_breaks" csv:"Number of Breaks"`
Notes int `json:"notes" csv:"Number of Notes"`
}
Click to show internal directories.
Click to hide internal directories.