projects

package
v1.11.3 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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