Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config: compare os.UserHomeDir and github.com/mitchellh/go-homedir, make a decision about integration #7

Open
kamilsk opened this issue Jan 17, 2021 · 0 comments
Assignees

Comments

@kamilsk
Copy link
Member

kamilsk commented Jan 17, 2021

Motivation: configuration is needed for tools. For example, $HOME/.maintainer.

Research spf13/cobra@8eaca5f and https://golang.org/pkg/os/#UserHomeDir and compare it with https://github.com/mitchellh/go-homedir.

PoC

config.Load("config.name") // open $HOME/.tool/config.name with fallback to config.name in working directory
@kamilsk kamilsk added help wanted Extra attention is needed difficulty: easy labels Jan 17, 2021
@kamilsk kamilsk self-assigned this Jan 17, 2021
@kamilsk kamilsk removed the help wanted Extra attention is needed label Oct 31, 2021
@kamilsk kamilsk moved this to Backlog in 🏗 Platform May 11, 2022
@kamilsk kamilsk changed the title integrate github.com/mitchellh/go-homedir config: compare os.UserHomeDir and github.com/mitchellh/go-homedir, make a decision about integration May 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

1 participant