Documentation ¶
Index ¶
- func CheckEnvVariables() error
- func Group(verboseFlag bool, outputFlag string) error
- func HttpGet(url string, account_id string, token string) ([]byte, error)
- type CSVFormatter
- type OutputFormat
- type Project
- type Report
- type ReportInterface
- type Result
- type Stats
- type Task
- type TextFormatter
- type TimeEntriesPage
- type TimeEntry
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckEnvVariables ¶
func CheckEnvVariables() error
Types ¶
type CSVFormatter ¶ added in v1.8.0
type CSVFormatter struct {
Stats *Stats
}
func NewCSVFormatter ¶ added in v1.8.0
func NewCSVFormatter(stats *Stats) *CSVFormatter
func (*CSVFormatter) Output ¶ added in v1.8.0
func (f *CSVFormatter) Output()
type OutputFormat ¶ added in v1.8.0
type OutputFormat uint32
const ( TextOutputFormat OutputFormat = iota CSVOutputFormat )
type Report ¶ added in v1.7.0
type Report struct { TimeEntries []TimeEntry // contains filtered or unexported fields }
type ReportInterface ¶ added in v1.8.0
type ReportInterface interface {
Output()
}
type Stats ¶ added in v1.7.0
func (*Stats) PercentageForTag ¶ added in v1.7.0
Returns percentage for total hours.
The hard part is to calculate percentage values so that the summed up percentages are not higher than 100%. See for example https://revs.runtime-revolution.com/getting-100-with-rounded-percentages-273ffa70252b Let's go with a simple solution that can calculate sum(percentages) > 100%.
func (*Stats) TotalHours ¶ added in v1.7.0
type TextFormatter ¶ added in v1.6.0
type TextFormatter struct {
Stats *Stats
}
func NewTextFormatter ¶ added in v1.6.0
func NewTextFormatter(stats *Stats) *TextFormatter
func (*TextFormatter) Output ¶ added in v1.6.0
func (f *TextFormatter) Output()
type TimeEntriesPage ¶ added in v1.9.0
Click to show internal directories.
Click to hide internal directories.