Closed hay-kot closed 1 month ago
The changes introduce a new package, appdirs
, which provides cross-platform access to application-specific directories for configuration and cache management. This package includes functions for handling legacy paths and transitioning to the XDG Base Directory Specification. Additionally, the main.go
file is updated to utilize the appdirs
package, replacing the existing HomeDir
function and adding a migrate
command to facilitate the migration of legacy paths.
File | Change Summary |
---|---|
internal/appdirs/appdirs.go | Introduced a new package with functions for managing application directories, including legacy and XDG paths. Functions added: RCFilepath , RCFilepathLegacy , RCFilepathXDG , CacheDir , CacheDirLegacy , CacheDirXDG , homeDir , MigrateLegacyPaths , migrateRCFile , migrateCacheDir . |
main.go | Integrated the appdirs package, removed HomeDir , and added migrate command for legacy path migration using appdirs.MigrateLegacyPaths() . |
In the burrow where paths intertwine,
A new way to find is simply divine.
With appdirs to guide, both old and new,
Our caches and configs, all fresh like the dew.
Hop along, dear friends, to the XDG way,
Migration is here, let’s frolic and play! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
Bug Fixes