Documentation
¶
Index ¶
Constants ¶
View Source
const AppName = "slack-mcp"
Variables ¶
This section is empty.
Functions ¶
func ConfigDir ¶
func ConfigDir() string
ConfigDir returns the XDG config directory: $XDG_CONFIG_HOME/slack-mcp
func DataDir ¶
func DataDir() string
DataDir returns the XDG data directory: $XDG_DATA_HOME/slack-mcp
func DownloadsDir ¶ added in v1.4.0
func DownloadsDir() string
DownloadsDir returns the user's downloads directory.
Order of preference:
- $XDG_DOWNLOAD_DIR if set. Note: this env var is a convention, not part of the XDG Base Directory spec — the real user-dirs.dirs file isn't parsed here. We honor it so callers can override without touching CLI args.
- $HOME/Downloads.
- os.TempDir() as a last resort for headless environments where $HOME isn't set — avoids returning a relative path that resolves against a surprising CWD.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.