parse

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package parse implements parsing of the jiratime work log format.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Input

func Input(r io.Reader, c *config.Config) (map[string][]Worklog, error)

Input parses text form stdin and returns an issue-Worklog map.

Types

type TimesheetParser

type TimesheetParser struct {
	fsm.Machine
	// contains filtered or unexported fields
}

A TimesheetParser parses a list of time periods and comments. It stores additional state related to timesheet parsing.

func (*TimesheetParser) Occur

func (t *TimesheetParser) Occur(e fsm.Event, l string) error

Occur handles an event occurrence.

type Worklog

type Worklog struct {
	Started  time.Time
	Duration time.Duration
	Comment  string // optional
}

Worklog represents an individual work log entry on a ticket.

Jump to

Keyboard shortcuts

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