Documentation
¶
Overview ¶
Package paths contains path resolution utilities used by the CLI.
The main entry point is ResolveTasksDir, which determines the directory to store and read tasks from in a way that works locally and inside containers. It supports absolute paths, relative paths resolved from the current working directory, upward ancestor search, optional anchoring to the git repository root, and a sensible fallback to the current working directory when no git repository is present.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResolveTasksDir ¶
ResolveTasksDir determines the directory to use for tasks based on the provided input path and the current execution context (local or container).
Strategy:
- Absolute path => return as-is.
- Relative path: a) If exists from CWD => return it. b) Walk up parents; if <ancestor>/<dir> exists => return it. c) If in a git repo => use <gitRoot>/<dir>. d) Fallback to <CWD>/<dir> (will be created on demand by the store).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.