danvergara / dblab

The database client every command line junkie deserves.
MIT License
2.35k stars 62 forks source link

feat: add support to look for the config file in $XDG_CONFIG_HOME #197

Closed timetravel-1010 closed 5 months ago

timetravel-1010 commented 5 months ago

Description

Added support to look for the config file in the $XDG_CONFIG_HOME path using the os package.

I've also updated the documentation in the necessary files, I think.

Implements #194

Type of change

How Has This Been Tested?

The test suite ran successfully.

I didn't add any unit test in the config_test.go file. I tested (on Ubuntu) putting the .dblab.yaml in my $XDG_CONFIG_HOME path though.

Checklist:

timetravel-1010 commented 5 months ago

Just test this out locally.

It worked out!!

Thanks @timetravel-1010!

You're welcome, happy to help/

P.D: I think #194 can be closed now.