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 ¶
EnsureHomeLayout creates and validates the stable Productize home layout.
func ResolveHomeDir ¶
ResolveHomeDir returns the canonical Productize home root under the current user's home directory.
func ResolvePath ¶
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 ¶
ResolveHomePaths resolves the canonical Productize home layout from the current user's home directory.
func ResolveHomePathsFrom ¶
ResolveHomePathsFrom resolves the canonical Productize home layout from an explicit base directory.
Click to show internal directories.
Click to hide internal directories.