project

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolveProjectPath

func ResolveProjectPath(projectName string) string

ResolveProjectPath looks up a project path by matching the taskwarrior project field against the ttal project DB alias. Returns empty string if no match found (caller should notify lifecycle agent).

Resolution order:

  1. If projectName matches an alias (with hierarchical fallback: "ttal.pr" → "ttal") → use that project's path
  2. If projectName contains exactly one alias ("ttal-cli" contains "ttal") → use that project's path
  3. If no match but only ONE project exists in DB → use it (single-project shortcut)
  4. Otherwise → return empty (no match)

Types

This section is empty.

Jump to

Keyboard shortcuts

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