config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DirName           = ".productize"
	ConfigFileName    = "config.toml"
	AgentsDirName     = "agents"
	ExtensionsDirName = "extensions"
	StateDirName      = "state"
	DaemonDirName     = "daemon"
	DBDirName         = "db"
	RunsDirName       = "runs"
	LogsDirName       = "logs"
	CacheDirName      = "cache"

	GlobalDBFileName = "global.db"
	DaemonSocketName = "daemon.sock"
	DaemonLockName   = "daemon.lock"
	DaemonInfoName   = "daemon.json"
	DaemonLogName    = "daemon.log"
)

Variables

This section is empty.

Functions

func EnsureHomeLayout

func EnsureHomeLayout(paths HomePaths) error

EnsureHomeLayout creates and validates the stable Productize home layout.

func ResolveHomeDir

func ResolveHomeDir() (string, error)

ResolveHomeDir returns the canonical Productize home root under the current user's home directory.

func ResolvePath

func ResolvePath(path string) (string, error)

ResolvePath expands a possible `~`-prefixed path and returns an absolute path.

Types

type HomePaths

type HomePaths struct {
	HomeDir       string
	ConfigFile    string
	AgentsDir     string
	ExtensionsDir string
	StateDir      string
	DaemonDir     string
	SocketPath    string
	LockPath      string
	InfoPath      string
	DBDir         string
	GlobalDBPath  string
	RunsDir       string
	LogsDir       string
	LogFile       string
	CacheDir      string
}

HomePaths captures the stable home-scoped Productize layout.

func ResolveHomePaths

func ResolveHomePaths() (HomePaths, error)

ResolveHomePaths resolves the canonical Productize home layout from the current user's home directory.

func ResolveHomePathsFrom

func ResolveHomePathsFrom(homeDir string) (HomePaths, error)

ResolveHomePathsFrom resolves the canonical Productize home layout from an explicit base directory.

Jump to

Keyboard shortcuts

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