projects

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(workingDir, dataDir string) error

Register adds or updates a project in the list.

func Save

func Save(list *ProjectList) error

Save writes the projects list to disk.

Types

type Project

type Project struct {
	Path         string    `json:"path"`
	DataDir      string    `json:"data_dir"`
	LastAccessed time.Time `json:"last_accessed"`
}

Project represents a tracked project directory.

func List

func List() ([]Project, error)

List returns all tracked projects sorted by last accessed.

type ProjectList

type ProjectList struct {
	Projects []Project `json:"projects"`
}

ProjectList holds the list of tracked projects.

func Load

func Load() (*ProjectList, error)

Load reads the projects list from disk.

Jump to

Keyboard shortcuts

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