Versions in this module Expand all Collapse all v0 v0.2.0 Nov 10, 2025 v0.1.2 Nov 10, 2025 Changes in this version + func FindGitRoot(ctx context.Context, start string) string + type Project struct + Appname string + Root string + func NewProject(ctx context.Context, appname string, opts ...ProjectOption) (*Project, error) + func (p *Project) CacheRoot(ctx context.Context) (string, error) + func (p *Project) ConfigRoot(ctx context.Context) (string, error) + func (p *Project) DataRoot(ctx context.Context) (string, error) + func (p *Project) LocalConfigRoot(ctx context.Context) (string, error) + func (p *Project) StateRoot(ctx context.Context) (string, error) + type ProjectOption = func(ctx context.Context, p *Project) + func WithAutoRootDetect() ProjectOption + func WithCacheRoot(path string) ProjectOption + func WithConfigRoot(path string) ProjectOption + func WithDataRoot(path string) ProjectOption + func WithRoot(path string) ProjectOption + func WithStateRoot(path string) ProjectOption