Documentation ¶
Index ¶
- func CheckOptionalEnvVariables() error
- func CheckRequiredEnvVariables() error
- func DownloadAndOutputEntries(verboseFlag bool, outputFilename string) error
- func Group(verboseFlag bool, inputFlag string, outputFlag string, skipUnknown bool) error
- type CSVFormatter
- type EntryMatcher
- type OutputFormat
- type PatternEntryMatcher
- type Report
- type ReportInterface
- type Result
- type Stats
- type TagEntryMatcher
- type TextFormatter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckOptionalEnvVariables ¶ added in v1.12.0
func CheckOptionalEnvVariables() error
func CheckRequiredEnvVariables ¶ added in v1.12.0
func CheckRequiredEnvVariables() error
func DownloadAndOutputEntries ¶ added in v1.12.0
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 EntryMatcher ¶ added in v1.11.0
type OutputFormat ¶ added in v1.8.0
type OutputFormat uint32
const ( TextOutputFormat OutputFormat = iota CSVOutputFormat )
type PatternEntryMatcher ¶ added in v1.11.0
type PatternEntryMatcher struct {
// contains filtered or unexported fields
}
func NewPatternEntryMatcher ¶ added in v1.11.0
func NewPatternEntryMatcher(pattern string) (*PatternEntryMatcher, error)
type Report ¶ added in v1.7.0
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 TagEntryMatcher ¶ added in v1.11.0
type TagEntryMatcher struct {
// contains filtered or unexported fields
}
func NewTagEntryMatcher ¶ added in v1.11.0
func NewTagEntryMatcher(tags string) *TagEntryMatcher
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()
Click to show internal directories.
Click to hide internal directories.