timer

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2025 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StateFilePathOverride string

StateFilePathOverride is used by tests to override the state file path.

Functions

func GetPromptStatus

func GetPromptStatus() (string, error)

func GetRawMinutesStatus

func GetRawMinutesStatus() (string, error)

func GetRawStatus

func GetRawStatus() (string, error)

func GetStateFile

func GetStateFile() (string, error)

func GetStatus

func GetStatus() (string, error)

func ResetTimer

func ResetTimer() (string, error)

func SetStateFilePathOverride added in v0.1.1

func SetStateFilePathOverride(path string)

func StartTimer

func StartTimer(continued bool) (string, error)

func StopTimer

func StopTimer() (string, error)

func TrackTime

func TrackTime(description string) (string, error)

Types

type State

type State struct {
	StartTime   time.Time
	ElapsedTime time.Duration
	Running     bool
}

func LoadState

func LoadState() (State, error)

func (*State) Save

func (s *State) Save() error

Jump to

Keyboard shortcuts

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