Skip to content

Move config to XDG Base Directory paths#2

Merged
emoryalimam merged 1 commit intomainfrom
xdg-config-paths
Mar 30, 2026
Merged

Move config to XDG Base Directory paths#2
emoryalimam merged 1 commit intomainfrom
xdg-config-paths

Conversation

@emoryalimam
Copy link
Copy Markdown
Member

Summary

  • Move global config from ~/.zeplin/ to ~/.config/zeplin-cli/ following the XDG Base Directory Specification
  • Move update cache to ~/.cache/zeplin-cli/
  • Move project-local config from .zeplin/ to .zeplin-cli/
  • Add XDG_CONFIG_HOME and XDG_CACHE_HOME environment variable support
  • Centralize all path logic into new Paths.swift
  • Bump version to 0.5.0

Test plan

  • swift build compiles cleanly
  • swift test — all 191 tests pass
  • zeplin-cli auth init creates config at ~/.config/zeplin-cli/config.json
  • zeplin-cli check-for-update writes cache to ~/.cache/zeplin-cli/

~/.zeplin/ was non-standard. Config now lives at ~/.config/zeplin-cli/,
cache at ~/.cache/zeplin-cli/, and project-local config at .zeplin-cli/.
Respects XDG_CONFIG_HOME and XDG_CACHE_HOME environment variables.
@emoryalimam emoryalimam merged commit e1ec95e into main Mar 30, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant