projects

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

SPDX-License-Identifier: Apache-2.0

Copyright © 2025 The Happy Authors

Index

Constants

This section is empty.

Variables

View Source
var (
	Error              = errors.New("projects")
	ErrNoProjectsFound = fmt.Errorf("%w: no projects found", Error)
)

Functions

This section is empty.

Types

type API

type API struct {
	// contains filtered or unexported fields
}

func New

func New() *API

func (*API) List

func (api *API) List(sess *session.Context, withSubprojects, all, fresh bool) (iter.Seq[project.DirInfo], error)

type Settings

type Settings struct {
	SearchPaths       settings.StringSlice `key:"search_paths,save" mutation:"once" desc:"The search paths to look for projects"`
	SearchPathIgnore  settings.StringSlice `key:"search_path_ignore,save" mutation:"once" desc:"The search paths to ignore when looking for projects"`
	CacheListDisabled settings.Bool        `key:"cache_list_disabled,save" mutation:"once" desc:"Disable caching of project list"`
	CacheListLifetime settings.Duration    `key:"cache_list_lifetime,save" default:"1h" mutation:"once" desc:"The lifetime of the project list cache"`
}

func (Settings) Blueprint

func (s Settings) Blueprint() (*settings.Blueprint, error)

Jump to

Keyboard shortcuts

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