cmd

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

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 ExportSummary struct {
	TotalEntries   int           `json:"total_entries"`
	TotalWorkTime  time.Duration `json:"total_work_time"`
	TotalBreakTime time.Duration `json:"total_break_time"`
	TotalBreaks    int           `json:"total_breaks"`
}

type TempJournalEntry

type TempJournalEntry struct {
	ID        string
	StartTime time.Time
	EndTime   time.Time
	Notes     []string
}

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"`
}

Jump to

Keyboard shortcuts

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