paths

package
v1.5.2 Latest Latest
Warning

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

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

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 ConfigPath

func ConfigPath() string

ConfigPath returns the config file path

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:

  1. $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.
  2. $HOME/Downloads.
  3. 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.

Jump to

Keyboard shortcuts

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