utils

package
v0.0.0-...-c40c2f6 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2026 License: Unlicense Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeBlocked

func ComputeBlocked(g *relations.RelationsGraph, tasks map[string]*types.Task, blockingAxis string, doneStates []string)

ComputeBlocked computes which tasks are blocked based on the blocks relation and the blocking axis configuration

func GenerateTaskUUID

func GenerateTaskUUID() (string, error)

GenerateTaskUUID generates a unique task UUID in the format task-<ulid>

func GetCurrentUser

func GetCurrentUser() (string, error)

GetCurrentUser returns the username of the current user It tries multiple methods to determine the username: 1. os/user.Current() (works on most systems) 2. USER environment variable (common on Unix) 3. USERNAME environment variable (common on Windows)

func GetTransitiveBlockers

func GetTransitiveBlockers(g *relations.RelationsGraph, taskUUID string, tasks map[string]*types.Task, blockingAxis string, doneStates []string, maxDepth int) []types.Blocker

GetTransitiveBlockers returns all transitive blockers for a task

func SplitEventID

func SplitEventID(eventID string) []string

SplitEventID splits an event ID into its components Format: ev-<number>-<node> or other formats

Types

This section is empty.

Jump to

Keyboard shortcuts

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