mirror of
https://github.com/slurdge/goeland.git
synced 2026-11-11 13:13:58 +00:00
[PR #82] [MERGED] feat: get config from standard places #110
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: slurdge/goeland#110
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/slurdge/goeland/pull/82
Author: @sweenu
Created: 11/4/2022
Status: ✅ Merged
Merged: 11/5/2022
Merged by: @slurdge
Base:
master← Head:config-directories📝 Commits (1)
9471b13feat: get config from standard places📊 Changes
1 file changed (+2 additions, -0 deletions)
View changed files
📝
config/config.go(+2 -0)📄 Description
I think the creation of the config file should also be in those directories:
$XDG_CONFIG_HOME/goeland/config.tomland if does not exist/etc/goeland/config.toml.The database should also probably go in
$XDG_STATE_HOME/goeland/goeland.dbor/var/lib/goeland/goeland.db.And to support macOS and windows as much, something like https://github.com/adrg/xdg could be used.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.