workdir

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package workdir resolves the td database root directory, supporting git worktree redirection via .td-root files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolveBaseDir

func ResolveBaseDir(baseDir string) string

ResolveBaseDir resolves td's project root with conservative heuristics:

  1. Honor .td-root in the current directory.
  2. Use current directory if it already has a .todos directory.
  3. If inside git, check git root for .td-root or .todos.

If no td markers are found, it returns the original baseDir unchanged.

Types

This section is empty.

Jump to

Keyboard shortcuts

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