storage

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendEvent

func AppendEvent(event model.Event) error

func AppendEventCollapsed

func AppendEventCollapsed(event model.Event) error

func ArchiveEvents

func ArchiveEvents(active []model.Event, archived []model.Event) error

ArchiveEvents moves the specified events to archive.db and rewrites issues.db with the active events.

func HubRoot added in v1.1.0

func HubRoot() string

HubRoot returns the absolute path of the primary checkout ("hub"). In a worktree it walks back through git-common-dir to find the main working tree; in a normal checkout or non-git context it returns the current working directory.

func ReadArchivedEvents

func ReadArchivedEvents() ([]model.Event, error)

ReadArchivedEvents reads events from the archive database

func ReadEvents

func ReadEvents() ([]model.Event, error)

func ResetHubRoot added in v1.1.0

func ResetHubRoot()

ResetHubRoot clears the cached hub root so it is re-discovered on the next call. Intended for tests only.

func XpoDir added in v1.1.0

func XpoDir() string

XpoDir returns the absolute path to the .xpo directory on the hub.

Types

This section is empty.

Jump to

Keyboard shortcuts

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