degica / kaiser

Commandline Gem that allows you to work with web apps better
https://tech.degica.com/kaiser/
MIT License
12 stars 1 forks source link

Kaiser config file shouldn't be a dot file #20

Open Metallion opened 4 years ago

Metallion commented 4 years ago

I'm currently writing some documentation for Kaiser and while digging into the tool's internals I missed the ~/.kaiser/.config.yml for quite a while.

Since ~/.kaiser is already a hidden directory, I think the files in there shouldn't be hidden. I suggest changing it to ~/.kaiser/config.yml and building in a little backwards compatibility layer for people that still have the old .config.yml I'd suggest a function that looks for the dotted file and undots if it exists. If an undotted config file exists already, it should take priority over the dotted one.

Resonious commented 4 years ago

Makes sense to not have a hidden file inside of a hidden directory. In fact if we're going to change file paths, I'd suggest following the XDG basedir spec and using $XDG_CONFIG_HOME/kaiser/$XDG_DATA_HOME/kaiser or similar.

Metallion commented 4 years ago

I just noticed there's a couple more hidden files in the ~/.kaiser directory. The default database for example. :) I'll have a read through that spec.