paths

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheDir

func CacheDir() string

CacheDir returns the mcpx cache directory ($XDG_CACHE_HOME/mcpx).

func ConfigDir

func ConfigDir() string

ConfigDir returns the mcpx config directory ($XDG_CONFIG_HOME/mcpx).

func ConfigFile

func ConfigFile() string

ConfigFile returns the path to config.toml.

func EnsureDir

func EnsureDir(dir string) error

EnsureDir creates a directory and parents if needed.

func LockPath

func LockPath() string

LockPath returns the path to the daemon file lock.

func ManDir

func ManDir() string

ManDir returns the man page target directory ($XDG_DATA_HOME/man/man1).

func RuntimeDir

func RuntimeDir() string

RuntimeDir returns the mcpx runtime directory for sockets and state. Falls back to $XDG_STATE_HOME/mcpx if XDG_RUNTIME_DIR is unset.

func SocketPath

func SocketPath() string

SocketPath returns the path to the daemon Unix socket.

func StateDir

func StateDir() string

StateDir returns the mcpx state directory ($XDG_STATE_HOME/mcpx).

func StatePath

func StatePath() string

StatePath returns the path to the daemon state file (contains nonce).

Types

This section is empty.

Jump to

Keyboard shortcuts

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