Documentation
¶
Overview ¶
Package paths provides CLI directory and file path resolution Per AI.md PART 36: CLI paths follow XDG on Linux, standard locations on Windows
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CacheDir ¶
func CacheDir() string
CacheDir returns the CLI cache directory Linux: ~/.cache/apimgr/search/ Windows: %LOCALAPPDATA%\apimgr\search\cache\
func ConfigDir ¶
func ConfigDir() string
ConfigDir returns the CLI config directory Linux: ~/.config/apimgr/search/ Windows: %APPDATA%\apimgr\search\
func DataDir ¶
func DataDir() string
DataDir returns the CLI data directory Linux: ~/.local/share/apimgr/search/ Windows: %LOCALAPPDATA%\apimgr\search\data\
func EnsureDirs ¶
func EnsureDirs() error
EnsureDirs creates all CLI directories with correct permissions. Called on every startup before any file operations. Per AI.md PART 36: CLI Startup Sequence (NON-NEGOTIABLE)
func EnsureFile ¶
EnsureFile creates parent dirs and sets permissions before writing. MUST be called before any file creation.
func LogDir ¶
func LogDir() string
LogDir returns the CLI log directory Linux: ~/.local/log/apimgr/search/ Windows: %LOCALAPPDATA%\apimgr\search\log\
func ResolveConfigPath ¶
ResolveConfigPath resolves --config flag to absolute path Per AI.md PART 36: --config Flag (Config File Selection)
Types ¶
This section is empty.